forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
area-testingdebtCovers everything internal: CI, testing, refactoring of the codebase, etc.Covers everything internal: CI, testing, refactoring of the codebase, etc.needs PRReady to be worked onReady to be worked on
Milestone
Description
Currently the pytest adapter captures the pytest stdout (and hides it unless there's an error) and write the JSON results to stdout. The extension then parses this output and incorporates the results.
An alternate approach would be to connect a socket to the script and push results out over that socket. This would add complexity, but provides a number of benefits:
- get results in real-time (important with large projects)
- can stream out individual errors instead of failing entirely
- no need to hide pytest stdout
- does not interfere with normal use of stdout (e.g. see atexit registered functions that print to stdout break test discovery #6581)
- get partial results even if the script fails
luabud, b-long, hameerabbasi, lenrar, JonasAmrich and 26 more
Metadata
Metadata
Assignees
Labels
area-testingdebtCovers everything internal: CI, testing, refactoring of the codebase, etc.Covers everything internal: CI, testing, refactoring of the codebase, etc.needs PRReady to be worked onReady to be worked on