2 new commands for running test modules run-module-test and run-module-test-docker.Autoclear terminal befor running a test.Add support for pytest options in the settings.json.Only when pytest_runner.pytest_exec is set to pytest without specifying the complete path of the exectuable, the first time the Run Test will fail due to async problem between terminal venv activation and the send command time. In the example aboveĪ single test will run with the ctrl+alt+1 key combination and the whole module can be tested using the ctrl+alt+2. Now, as well as the command palette, the tests can be exectued using your custom shortcut. Open keybinding.json -> command palette ( ⇧⌘P or ctr⇧P) Open Keyboard Shortcut.To increase the speed I would suggest new entries in the keybindigs in order to map the 2 commands to a keyboard The 4 commands in the section above are actually an alias for these: I would suggest to create a keyboard shortuct for every command you are going to use. □ This way of usage (through the command palette) could be not really productive. If you wanna run all the tests in your current python module you can just use Run Test Module or Run Test Module Docker independently of the cursor location.
0 Comments
Leave a Reply. |