python 如何在pycharm中覆盖默认的pytest参数?[duplicate]

ryevplcw  于 2022-12-21  发布在  Python
关注(0)|答案(1)|浏览(271)
    • 此问题在此处已有答案**:

How to remove pytest --no-header --no-summary -q parameters in PyCharm?(1个答案)
2小时前关门了。
每当我在pycharm中启动一个测试时,它都会使用以下参数执行:

Launching pytest with arguments tests/unittests/routers/test_data.py::TestDataRouter::test_foo --no-header --no-summary -q in ...

我如何摆脱--no-header --no-summary -q参数?
我知道我可以在运行时配置中添加参数。但是我找不到上面的参数,所以我可以删除它们。我也检查了配置模板,里面也没有。

nwnhqdif

nwnhqdif1#

I think you can find it here by pressing ctrl+alt+s and in advanced setting Advanced Settings, then select the Pytest: don't add "--no-header --no-summary -q" checkbox in the Python section.: "https://www.jetbrains.com/help/pycharm/pytest.html#run-pytest-test"

相关问题