Open domeniqo opened 2 years ago
"pytest.xpass" should be treated similarly to "failed" -> test passed, but it wasn't excepted to pass, something is wrong
Currently vscode treats it as "passed" which is incorrect
edit: I was wrong, it is necessary to turn on "strict" mode for this
If I get it right, this adapter evaluates results on generated xml file from pytest.
Is there possibility to add other icon in test explorer UI than is used for "skipped" tests? It would be great to distinguish between expected failures and skipped tests.
XFail: Pytest's generated xml file has node \<skipped type="pytest.xfail" \/> which could be parsed during tests result evaluation.
XPass: Pytest's generated xml file does not determine between python.pass and pytest.xpass so this can't be probably implemented right away.
Results shown in UI:![image](https://user-images.githubusercontent.com/27335718/143862173-31dbb070-71ca-4e95-9f3c-81df3a2d4287.png)