Runnings tests result in "Unable to attach test reporter (...)"
I have just installed the Python plugin in IntelliJ and was thinking I should check out how to run tests from within IntelliJ. After creating a testclass and right-clicking on the class, I chose "Run unittests in Utility...". I was then given the following message in the testrunner window and a stack dump
"Unable to attach test reporter to test framework or test framework quit unexpectedly"
Testing started at 4:19 PM ...
Traceback (most recent call last):
File "/Users/carl-erik/Library/Application Support/IntelliJIdea11/python/helpers/pycharm/utrunner.py", line 9, in <module>
from nose_helper import TestLoader, ContextSuite
File "/Users/myUser/Library/Application Support/IntelliJIdea11/python/helpers/pycharm/nose_helper/__init__.py", line 2, in <module>
from nose_helper.loader import TestLoader
File "/Users/myUser/Library/Application Support/IntelliJIdea11/python/helpers/pycharm/nose_helper/loader.py", line 201, in <module>
defaultLoader = TestLoader()
File "/Users/myUser/Library/Application Support/IntelliJIdea11/python/helpers/pycharm/nose_helper/loader.py", line 43, in __init__
unittest.TestLoader.__init__(self)
AttributeError: class TestLoader has no attribute '__init__'
The tests run fine if run from a terminal: "python UtilityTest.py"
"Unable to attach test reporter to test framework or test framework quit unexpectedly"
Testing started at 4:19 PM ...
Traceback (most recent call last):
File "/Users/carl-erik/Library/Application Support/IntelliJIdea11/python/helpers/pycharm/utrunner.py", line 9, in <module>
from nose_helper import TestLoader, ContextSuite
File "/Users/myUser/Library/Application Support/IntelliJIdea11/python/helpers/pycharm/nose_helper/__init__.py", line 2, in <module>
from nose_helper.loader import TestLoader
File "/Users/myUser/Library/Application Support/IntelliJIdea11/python/helpers/pycharm/nose_helper/loader.py", line 201, in <module>
defaultLoader = TestLoader()
File "/Users/myUser/Library/Application Support/IntelliJIdea11/python/helpers/pycharm/nose_helper/loader.py", line 43, in __init__
unittest.TestLoader.__init__(self)
AttributeError: class TestLoader has no attribute '__init__'
The tests run fine if run from a terminal: "python UtilityTest.py"
Please sign in to leave a comment.
please, go to Run->Run/Debug Configurations->Python's test->Unittests and check "Inspect only subclasses of ..." checkbox.
/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 "/Users/carl-erik/Library/Application Support/IntelliJIdea11/python/helpers/pycharm/utrunner.py" /Users/carl-erik/Utvikling/var/server_configurations/nw-ws-037.asplogon.com/currency/converter_test.py::UtilityFunctionsTest false
Testing started at 1:53 PM ...
...(more)
/usr/bin/python ~/Downloads/pycharm-2.6.2/helpers/pydev/pydevd.py –multiproc –client 127.0.0.1 –port 50363 –file ~/Downloads/pycharm-2.6.2/helpers/pycharm/utrunner.py ~/myProject/test/Test.py::Test true
Testing started at 5:31 PM ...
pydev debugger: process 7076 is connecting
Traceback (most recent call last):
File "~/Downloads/pycharm-2.6.2/helpers/pydev/pydevd.py", line 1457, in <module>
debugger.run(setup['file'], None, None)
File "~/Downloads/pycharm-2.6.2/helpers/pydev/pydevd.py", line 1103, in run
pydev_imports.execfile(file, globals, locals) #execute the script
File "~/Downloads/pycharm-2.6.2/helpers/pycharm/utrunner.py", line 9, in <module>
from nose_helper import TestLoader, ContextSuite
File "~/Downloads/pycharm-2.6.2/helpers/pycharm/nose_helper/__init__.py", line 2, in <module>
from nose_helper.loader import TestLoader
File "~/Downloads/pycharm-2.6.2/helpers/pycharm/nose_helper/loader.py", line 201, in <module>
defaultLoader = TestLoader()
File "~/Downloads/pycharm-2.6.2/helpers/pycharm/nose_helper/loader.py", line 43, in __init__
unittest.TestLoader.__init__(self)
AttributeError: class TestLoader has no attribute '__init__'
Process finished with exit code 1
Do I need to install something additional?