-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pytest Arg --slow
not working
#23838
Comments
--slow
not working
Hello! Looks like you are on the pre-rewrite code for our testing update. Please opt in and this should fix your issue! You can do so by adding this to your user settings |
Hi. Thanks for getting back to me. I tried your suggestion to no avail but I am assuming you mean to suggest that I use
|
Hi! No need to add |
Thanks again for the response. This has Indeed solved the problem. |
Type: Bug
Behaviour
When specifying
"python.testing.pytestArgs": ["--slow"]
in the settings.json file, the argument is not passed to pytest when running as all tests marked as slow are not run.A way around this which works as expected is to specifiy the following in a pytest.ini file:
addopts = --slow
Steps to reproduce:
This requires pytest-skip-slow to be installed: https://pypi.org/project/pytest-skip-slow/
@pytest.mark.slow
to cause it to only run when--slow
is passed to the pytest command."python.testing.pytestArgs": ["--slow"]
to the settings.json file.Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.10.0
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z)
OS version: Windows_NT x64 10.0.19045
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
The text was updated successfully, but these errors were encountered: