Skip to content

Pytest tests need updating for the new test discovery model #4735

@d3r3kk

Description

@d3r3kk

Tests in src/test/unittests/pytest/pytest.testMessageService.test.ts require a set of input text to send to the parser to complete the tests there. The input text is the output text from the pythonFiles/testing_tools module.

However, the test layout that we need to replicate is not successfully handled by the testing_tools adapter for Pytest yet. The foreign tests brought into a class via the inheritance model is causing the adapter to throw NotImplementedError here. (The file being processed at that point in the code does not match the file where test exists.)

Once we get testing_tools updated to handle inheritance in Pytest then we should be able to generate the correct ouput JSON to replace the contents of the *.output files in src\test\pythonFiles\testFiles\pytestFiles\results\ to get these tests working again.

Metadata

Metadata

Assignees

Labels

area-testingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions