PyCharm 2016.3.2 UnitTest running
I'm not positive when this started happening, but while running 2016.3.2 I can't right click and run a unit test file, or test inside a file for some tests.
As an example, I have three test files. Each has a number of tests inside it. But only 1 of them can I right click and get the 'Run UnitTests in MyFile' menu. The other 2 files just say 'Run MyFile'
I've tried doing the edit configuration and saying that file is a unit test. It works ok if I want to run all the tests in the file, but I am unable to run or debug a single test inside of those files.
I even tried File->New Python File. Selected the Kind of 'Python unit test'. It generated a file for me, but even that file is unable to be run as a unit test file.
Any help or insight would be greatly appreciated.
Please sign in to leave a comment.
Hello,
Please check the problem with the latest Pycharm 2017.1 EAP: https://www.jetbrains.com/pycharm/nextversion/.
If the problem remains, please share your project with our support (pycharm-support@jetbrains.com) or upload it to http://uploads.jetbrains.com/ and tell us its name. Thank you!
I found that my problem was that someone on the project had created a UnitTest folder, and PyCharm was unsure how to import things since that name conflicted with the actual python unittest files.