First time here? Check out the FAQ!
1

Launch configuration for django test for only current file

I have a launch configuration to launch django test. Is ther a way to define a --pattern input parameter for the test command that would limit the tests to the current file testcases? please excuse me if the solution is trivial I am not an experienced user

piscvau's avatar
486
piscvau
asked 2021-09-20 05:54:44 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2021-09-20 09:13:59 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

To send arguments to unit tests, you can configure the test environment from Project Properties under the Testing tab. If you set Environment to Use Selected Launch Configuration you can set the Run Arguments in the launch configuration, under its Environment tab. I'm not sure that's very convenient, though, if you are constantly changing this argument. The best approach then might be to just keep the Launch Configurations dialog (accessed from the Project menu) open all the time.

As far as detecting automatically which tests need to run for a particular source file: Currently there is no way to do this in Wing. Longer term, our plan is to make it possible to track code coverage and use that to selectively re-run relevant tests for a source file or directory or all things changed since last repository update, etc. That's a larger feature currently being considered for Wing 9, although it's complex enough that it's unclear how well it would actually work in practice, without further experimentation.

Wingware Support's avatar
4k
Wingware Support
answered 2021-09-20 09:23:29 -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