MedicineMan
MedicineMan

Reputation: 15314

Pycharm : conditionally run integration test

In Pycharm, I would like to conditionally run integration tests, but always run unit tests.

Integration tests are named like this: itest_<module name>.py.  
Unit tests are named like this: test_<module name>.py

Can this be accomplished with some kind of run / debug configuration or some other configuration / code trick?

Upvotes: 1

Views: 82

Answers (1)

MedicineMan
MedicineMan

Reputation: 15314

the way that I handled this was that I named tests as test_ and integration tests as itest_. Then I used discovery with the pattern *test_.

Upvotes: 1

Related Questions