First time here? Check out the FAQ!
1

launch recognition of only one test file in a django project using the testing tool

  • retag add tags

Hello I have a testfile where 2 tests fail the first time they are discovered and ran into the testing tool. Once they are downloaded if I run them again they pass.

To understand what is happening I am looking for a way to launch tests recognition in debug modeby right clicking on manage.py debug test but I would like to recognize only the test file which causes problem. What is the proper way to do this. How can I modify the file properties of manage.py file to restrict it to the faulty test file?

piscvau's avatar
611
piscvau
asked 2025-04-26 12:03:36 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

There isn't a way to debug a specific test that hasn't been discovered yet. Just set a break point in the test code you want to run and then Debug All Tests.

Wingware Support's avatar
4.2k
Wingware Support
answered 2025-05-01 08:15:26 -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