First time here? Check out the FAQ!
1

viewing all tests of a project within the testing tool

Hello I am still unclear about how to get a complete view of all tests in my django project in the testing tool, and whether this is possible at all. I need to have 2 types of tests : 1. django tests which are run with manage.py test file name. I have configured these tests with a regex in the project properties. In the testing tool window they are displaid under the manage.py file 2. other tests which are not ran using manage.py and for which I need to use debug or exec of the file in the debug menu after having this file opened in the editor

What I would like is to be able to see all those tests in the testing tool window and their current status and also be able to run them from the testing tool window at least from the menu command run all tests. Could you confirm this is not possible or document how this can be done?

I thank you in advance

piscvau's avatar
526
piscvau
asked 2024-05-20 11:19:38 -0500
Wingware Support's avatar
4.1k
Wingware Support
updated 2024-05-20 11:20:11 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

You should be able to mix and match testing runners in the Testing tool. Sounds like you have manage.py set up already so it should just be a question of adding the other files also to the Testing tool, either via regex/etc in the Testing tab of Project Properties or by Add Current File in the Testing menu. Then right-click on each of those files and in their File Properties set the Test Framework in the Testing tab for that file to the correct one (not Django). Then all the files should appear in Testing and be run with the right testing runner.

Please let me know if this does not help.

Wingware Support's avatar
4.1k
Wingware Support
answered 2024-05-21 08:41:39 -0500, updated 2024-05-21 08:42:01 -0500
edit flag offensive 0 remove flag delete link

Comments

Hello Thanks for the answer. Because different types of tests must be launched in different ways it would be helpful to have tests which are ran with manage.py displaid under the file whereas they are all brought up at the same level as unittest test files.

Also it does not seem possible to add the files which require a specific django test runner.

piscvau's avatar piscvau (2024-05-21 14:57:44 -0500) edit

It's not currently possible to add files that are run by Django's manage.py to the Testing tool individually. They all appear under manage.py and are found according to the rules that manage.py uses to find tests and not by Wing.

Wingware Support's avatar Wingware Support (2024-05-22 14:35:07 -0500) edit
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