Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
eyalk11 opened this issue May 3, 2025 · 1 comment
Open

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

eyalk11 opened this issue May 3, 2025 · 1 comment
Assignees
Labels
area-testing info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@eyalk11
Copy link

eyalk11 commented May 3, 2025

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.

@eleanorjboyd
Copy link
Member

have you tried right clicking and then selecting "show result output"? I think this is what you are looking for- currently each test does not correlate with its output so it is only under the parent test run node.

Image

@eleanorjboyd eleanorjboyd transferred this issue from microsoft/vscode May 27, 2025
@eleanorjboyd eleanorjboyd added area-testing info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team labels May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-testing info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants