Linked Questions
9 questions linked to/from How do I configure PyCharm to run py.test tests?
0 votes
0 answers
565 views
Run python pytest file from another python file [duplicate]
I have a few pytest files (begins with "test_"), each one of them tests another part of the system Now I want to create one file which supposes to run all the tests together. I read here how ...
0 votes
0 answers
50 views
Run button to test function disappeared in pycharm [duplicate]
When I used pycharm, there used to be this run option close to my function declarations which I used to run my tests. I opened my pycharm today and this option disappeared. It used to be like in this ...
26 votes
5 answers
28k views
Why does pycharm not recognize my pytest tests and show the test output?
I'm new to pytest and am trying to write testing modules for my application. My directory structure is: broker/ broker/tests broker/tests/conftest.py broker/tests/test_db.py broker/db.py I want to ...
5 votes
2 answers
15k views
PyCharm/Python. Code doesn't run. Immediately receiving "Getting Process finished with exit code 0"
I recently switched my workstation and reinstalled all my environment on Fedora 25. When attempting to run any part of my project (I run PyTest tests) I always end up getting "Process finished with ...
1 vote
1 answer
3k views
Pytest not properly using fixture: TypeError: test_foo() missing 1 required positional argument: 'bar' [closed]
I am running a pytest with Pycharm. It follows the fixture correctly when using ctrl+click. import pytest @pytest.fixture(scope="session") def bar(): return 1 def test_foo(bar): pass ...
0 votes
2 answers
1k views
Pytest. Test parametrization does not work
Code is the following: import pytest @pytest.mark.parametrize("x", [0, 1]) @pytest.mark.parametrize("y", [2, 3]) def test_foo(x, y): assert x > y But by running the test system gives: ...
1 vote
0 answers
774 views
IntelliJ Python plugin pytest code runs but debug doesn't work
I have an issue debugging python tests using pytest on IntelliJ IDE with the python plugin the tests can be run (they have the green arrow) and after running them they are executed correctly but I can'...
1 vote
1 answer
570 views
How to save a test run config as default in Pycharm?
Currently for any test run, I have to keep adding the options --keepdb -v2 to the testrun configuration as below snapshot How to save this as default for next test run? p.s. The google search leads ...
0 votes
2 answers
354 views
Why is my Pycharm debug console not loading?
I recently installed Pycharm on a fresh PC. Unfortunately something seems to be off with the installation. When I try to enter the debug console this isn't loading. E.g. for a very simple test case ...