I use Pytest for my testing. I set up some basic Run Configurations e.g. to run all tests in my tests folder.
However, I frequently want to just run a single test file (the one I have focus in the editor), or a single test function from a test file (the function whose name I have selected in the editor).
Is there a way to set a keyboard shortcut to simply run that test file (focus) or test function (selected) without all the trouble of setting up a Run Configuration for all the combinations?