Getting an empty test suite in pycharm

7,453 views
Skip to first unread message

binni...@gmail.com

unread,
Sep 30, 2014, 12:40:17 PM9/30/14
to wtfra...@googlegroups.com
I have my high level test in the tests/tests directory, but when I run the unittest in pycharm, I get this:

WARNING:wtframework:Config file not specified. Using:configs/default.yaml

Process finished with exit code 0
Empty test suite.

I followed the example in https://github.com/wiredrive/wtframework/blob/master/tests/tests/test_example.py

I was wondering if someone can help me out?

David Lai

unread,
Sep 30, 2014, 3:55:10 PM9/30/14
to wtfra...@googlegroups.com
My best guess is you might want to configure PyCharm to use nosetests as the test runner.

In the runtests.py, here's the line that generates the command line to run the tests.

binni...@gmail.com

unread,
Sep 30, 2014, 6:50:18 PM9/30/14
to wtfra...@googlegroups.com
Hi,

I did set the python integrated tools to NoseTests. But it's still giving me the same empty test suite

The difference between my file and the example test py file, is when I right click on mine, I see "Run nosetest in ..." but on the test_example.py I just see test_example

Is there a reason why there is that difference? Everything looks the same (e.g structure, importing form WTFBaseTest, etc)

David Lai

unread,
Sep 30, 2014, 7:17:51 PM9/30/14
to wtfra...@googlegroups.com
Might want to check the name of the tests have the word "test_" in the method name. I remember a while back I was puzzled to why tests ran in one context but not in another, then found out that some test runners are picky about having the word "test" in the name of the methods.

binni...@gmail.com

unread,
Sep 30, 2014, 7:23:58 PM9/30/14
to wtfra...@googlegroups.com
Ah that fixed it

Thank you

Reply all
Reply to author
Forward
0 new messages