Configuring tests for subdirectory

已回答

I am going through the video tutorials. I am on the test section. I did not create a new project with the file to test at the top root level. I added a directory to my project. The tests are not being found. It is very confusing, if I test the file with control Shift Run (on mac os/x) - it says no tests found, if my cursor is on a particular test function, it does test it.

My directory structure is

project_root_dir/pycharm_tutorial/__init__.py

project_root_dir/pycharm_tutorial/prime_numbers.py

project_root_dir/pycharm_tutorial/test_prime_numbers.py

how do I configure the tool to run the tests correctly?

0

Hello.

Please attach your project to this issue if possible, or provide screenshot of your project structure.

Try to right click on file with tests and provide screenshot also.

 

Thank you.

 

 

0

请先登录再写评论。