Opened 9 years ago

Closed 9 years ago

Last modified 2 years ago

#6477 closed Uncategorized (wontfix)

Make running unit tests easier

Reported by: Bastian Kleineidam <calvin@…> Owned by: nobody
Component: Testing framework Version: master
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)

0001-Make-running-unit-tests-easier.patch (1.3 KB) - added by Bastian Kleineidam <calvin@…> 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Bastian Kleineidam <calvin@…>

comment:1 Changed 9 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

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.

comment:2 Changed 9 years ago by Bastian Kleineidam <calvin@…>

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 Changed 2 years ago by Daniel Hahler

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 Changed 2 years ago by Aymeric Augustin

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.

Note: See TracTickets for help on using tickets.
Back to Top