#6477 closed Uncategorized (wontfix)
Make running unit tests easier
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Added a Makefile with "test" target and a default unittest
settings file. This enables users to easily run unittests
with "make test".
Attachments (1)
Change History (5)
by , 17 years ago
Attachment: | 0001-Make-running-unit-tests-easier.patch added |
---|
comment:1 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
Yes, perhaps a wiki page is more appropriate. At least I did not find any documentation on how to run the internal unit tests, and had to dig in the source code to come up with a working solution. Definitely not as easy as it could be ;)
comment:3 by , 10 years ago
Easy pickings: | unset |
---|---|
Severity: | → Normal |
Type: | → Uncategorized |
UI/UX: | unset |
I have provided a pull request for a Makefile at: https://github.com/django/django/pull/2906
Its main concern currently is also to run make test
easily.
Regarding the comment from mtredinnick above:
Not every system will have make on it
That's not a reason to not provide an easy path on systems where it is available (Linux, MacOS, ..).
comment:4 by , 10 years ago
Since that ticket was filed, Django gained a sample test settings file and it has become possible to run the tests with cd tests; ./runtests.py
. Hiding that behind a Makefile doesn't really help. So it's still a wontfix for me.
Thanks Bastian, but not worth it. Not every system will have make on it, so that's going to cause confusion and questions and it's really easy to make a small test settings file, although some thought is required to pick the appropriate backend (SQLite is not always appropriate), which is why we don't ship one with Django.