Skip to content

Test output is not kept for sucessful tests (pytest) #25111

@eyalk11

Description

@eyalk11

Does this issue occur when all extensions are disabled?: No

  • VS Code Version: 1.99.3
  • OS Version: Windows 10

Steps to Reproduce:
I am testing python code with pytest. I use test explorer to run them. I instruct it to keep logging in test results by

[pytest]
log_cli = 1
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format=%Y-%m-%d %H:%M:%S
addopts= --capture=tee-sys

When I get back to a previously run test, whatever the settings are , it writes

The test case did not report any output. 

I wasn't really able to see results of succesful tests post test .It seems that if I pass -s then it is kept as long as I am keep focus on same on the same test , which is just funny. As mentioned in microsoft/vscode#242097 ,

This is a bug since this output is factually incorrect. It should have been

The test results weren't kept as vscode lacks this feature

So it is probably also a (basic) feature request.

Metadata

Metadata

Assignees

Labels

area-testinginfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions