在Pycharm中,我希望有条件地运行集成测试,但始终运行单元测试。
Integration tests are named like this: itest_<module name>.py. Unit tests are named like this: test_<module name>.py
这可以通过某种运行/调试配置或其他配置/代码技巧来完成吗?
我处理这个问题的方法是将测试命名为测试,将集成测试命名为ITest。然后我用“发现”和“模式测试”。