VS Code配置pytest时无法传递-vv详细输出选项的问题咨询
VS Code配置pytest时无法传递-vv详细输出选项的问题咨询
我现在在VS Code里使用pytest包做测试,其中一个测试的输出显示:
...Full output truncated (38 lines hidden), use '-vv' to show
于是我尝试通过在设置 > 扩展 > Python > Testing: Pytest Args里添加-vv来启用这个选项,但完全没效果。而且从VS Code的Python输出面板里能看到,这个参数根本没被传递到命令里:
2025-01-21 18:32:59.255 [info] > conda run -n mypackage --no-capture-output python ~/.vscode/extensions/ms-python.python-2024.22.2-darwin-arm64/python_files/get_output_via_markers.py -m pytest --rootdir . --override-ini junit_family=xunit1 --junit-xml=/var/folders/9l/8ctsrnn52fgbfv9t_tv0spfc0000gn/T/tmp-76078weBH0cvqbBI6.xml ./tests/test_mytest.py::testfunction
请问我该怎么确保verbose选项能被正确启用呢?
备注:内容来源于stack exchange,提问作者Wasserwaage
相关产品推荐
相关产品推荐

