Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

shortcut to run current Python unit test in VSCode

$
0
0

The question is regarding Visual Studio Code (VSCode from here) and python VSCode extension that finds and runs py.test tests.

Is it possible to assign some shortcut to run current (under cursor) test method and/or test class?

I really like the ability to run single test straight from VSCode, but my workflow is not optimal since it is necessary to click it and just use some shortcut.

clickable run test

This image shows the buttons that appear when tests are found and can be run. I would like to know if it is possible to just use some custom shortcut instead of clicking this buttons.


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>