First time here? Check out the FAQ!

Revision history  [back]

If I understand correctly, the runtests.py example in the Django documentation is a python file that creates a Django test runner and then uses it to run tests. Wing does not support this in the testing tool because it creates a custom test runner (a subclass of the Django runner) in order to work with the Wing IDE process.

It should be possible to debug or execute the file as a standalone file outside of the testing tool. Another approach would be to use the pytest-django and write pytest tests; there may be a similar package / method for writing tests that use the unittest test runner rather than the Django test runner.