1

using Testing Tool to run tests with django testrunner

  • retag add tags

Hello To test some modules I need to use the django test runner as describes here: https://docs.djangoproject.com/en/5.0/t… Using the Django test runner to test reusable applications¶

I added the runtests.py module in the testing tool but when I click on runtests it shows : could not read any output from test runner. I would like to be able to use the testing tool to run or debug the testCase one by one.

I thank yu in advance for your haelp.

piscvau's avatar
526
piscvau
asked 2024-05-13 07:41:36 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

Wingware Support's avatar
4.1k
Wingware Support
answered 2024-05-13 10:25:45 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer