pytest test runner green triangle set default directory

Dear community,

I like using the green triangle to start test functions. When running a function via the triangle the working directory is the directory of the file that contains the function. Can I configure the test runner to use the project root as the working directory when clicking the triangle?

Best Regards,

Michael

Thank you for your answer Andrey Resler.

My problem is that I have to change the working directory in the run configuration every time I create a new configuration via the triangle. Can I set a working directory that is used when a configuration is created by clicking the green triangle/run button?

0
1 comment

Hi, you can change the working directory to any other using configuration templates

0

Please sign in to leave a comment.