PyCharm automatically detects when files start with test_ , and tries to run them as Unittests. Which is very important, but something seems broken, and with any test that I run, I get
/Users/peter/projects/plato/venv/bin/python2.7 "/Applications/PyCharm CE.app/Contents/helpers/pycharm/utrunner.py" /Users/peter/projects/plato/utils/tools/test_sampling.py::::test_samplers_not_broken true Testing started at 10:58 AM ... Traceback (most recent call last): File "/Applications/PyCharm CE.app/Contents/helpers/pycharm/utrunner.py", line 140, in <module> all.addTest(testLoader.makeTest(getattr(module, a[2]))) AttributeError: 'TestLoader' object has no attribute 'makeTest' Process finished with exit code 1
All I want to do is run them like regular python files, but PyCharm will not let me. Eclipse makes it possible to start normally or run as unittest. This is annoying! How can i do this?
Decision
While it is displayed, you cannot disable this option globally; you can prevent individual files from running as tests. For an answer see this question .
Peter source share