pytest - Different results via VSCode and via command line

435 Views Asked by At

For some reason I have a lot more test failures using pytest according to VSCode than I can see via the command line...

I have a lot more test failures according to VSCode

What could be happening?

NOTE: When I run pytest directly via CLI (Linux) I get exactly the same results seen in the "DEBUG CONSOLE".

Tks!

1

There are 1 best solutions below

1
On

I believe that the plugin has not run the tests with the same parameters as you do. Did you see the plugin output?

Example:

enter image description here