Ask Your Question

Launch configuration for django test for only current file

asked 2021-09-20 05:54:44 -0500

piscvau's avatar

updated 2021-09-20 09:13:59 -0500

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-09-20 09:23:29 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2021-09-20 05:54:44 -0500

Seen: 344 times

Last updated: Sep 22 '21