I have a Django project with a bunch of tests that I have just imported into PyCharm. I managed to get it configured so that I can run the server and that works fine but now I want to run the tests as well. I have tried to create a Path based Test Configuration and given the manage.py path and the test command as well as my settings file as parameters but I get the following cryptic error message:
Testing started at 10:12 ...
/Users/jonathan/anaconda/bin/python "/Applications/PyCharm CE.app/Contents/helpers/pycharm/_jb_unittest_runner.py" --path /Users/jonathan/Work/GenettaSoft/modeling-web/modeling/manage.py -- test --settings=Modeling.settings.tests
Launching unittests with arguments python -m unittest /Users/jonathan/Work/GenettaSoft/modeling-web/modeling/manage.py test --settings=Modeling.settings.tests in /Users/jonathan/Work/GenettaSoft/modeling-web/modeling
usage: python -m unittest [-h] [-v] [-q] [--locals] [-f] [-c]
[tests [tests ...]]
python -m unittest: error: unrecognized arguments: --settings=Modeling.settings.tests
Process finished with exit code 2
Empty test suite.
It must be running things in the wrong way somehow. Can this not be done at all?
Ps. I found Running Django tests in PyCharm but it does not seem related at all (much older version?), cause I get different errors and things look very different.