在 PyCharm 中禁用自动启动单元测试
Disable automatically starting unit tests in PyCharm
使用最新版本的 PyCharm,每次我进行更改时,PyCharm 都会自动 运行 为我进行单元测试。很多时候,这非常方便。但是,有时我需要关闭此功能,以便在我显式调用它们时只进行 运行 测试。我该怎么做?
之前有人问过类似的问题:PyCharm - run a corresponding unit test each time a file is saved
简单地说,关闭左侧绿色箭头下方的功能。
来自https://www.jetbrains.com/pycharm/help/test-runner-tab.html
"AutoTest Toggle auto-test If this button is pressed, the autotest-like runner is turned on. It means that the test in the current run configuration tab will automatically rerun on changing its source code. Otherwise, to rerun such test, you have to click the rerun button"
使用最新版本的 PyCharm,每次我进行更改时,PyCharm 都会自动 运行 为我进行单元测试。很多时候,这非常方便。但是,有时我需要关闭此功能,以便在我显式调用它们时只进行 运行 测试。我该怎么做?
之前有人问过类似的问题:PyCharm - run a corresponding unit test each time a file is saved
简单地说,关闭左侧绿色箭头下方的功能。
来自https://www.jetbrains.com/pycharm/help/test-runner-tab.html
"AutoTest Toggle auto-test If this button is pressed, the autotest-like runner is turned on. It means that the test in the current run configuration tab will automatically rerun on changing its source code. Otherwise, to rerun such test, you have to click the rerun button"