[Python] VS Code does not pass '-vv' Verbose Option to pytest

Discussão em 'Python' iniciado por Stack, Janeiro 22, 2025.

  1. Stack

    Stack Membro Participativo

    I am using the pytest package in VS Code. In one of my tests, the output reads:

    ...Full output truncated (38 lines hidden), use '-vv' to show


    So I tried to pass this option by adding -vv to Settings > Extensions > Python > Testing: Pytest Args - but this has no effect. In fact, the Python Output of VS Code shows that the argument is not passed:

    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


    How can I ensure the verbose option is enabled?

    Continue reading...

Compartilhe esta Página