Skip to content
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

Expand results by default in html log output or make expand button more visible #4197

Closed
SrS2225a opened this issue Dec 9, 2022 · 6 comments

Comments

@SrS2225a
Copy link

SrS2225a commented Dec 9, 2022

Describe the bug

So I am using the MSTest for framework for visual studio 2022 to run a few tests for QA. I want the data in a html format to easily keep track of the tests. It would show the failed test results just fine, but I want it to show which tests were ran as well, which are not displayed.

I found that the data I want is there in the html file, but for some reason MSTest would hide that data by default. How can I get MSTest to show this data? This is what it shows and what I actually want: https://imgur.com/a/LCW3zyR

Steps To Reproduce

Provide the steps to reproduce the behavior:

  1. Enable html logging in your .runsettings file https://learn.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2022#loggerrunsettings-element
  2. In the test explorer, click on "Run all tests"
  3. Open the saved html file in the root of the project under the folder "TestResults"
  4. No data will be displayed showing each test result

Expected behavior

MSTest shows each test ran

Actual behavior

MSTest instead would hide this data

Additional context

MSTest hides this data by adding a css property display: none to the div that holds each test ran. It should not add such a property but it does

@SrS2225a SrS2225a added the bug label Dec 9, 2022
@Evangelink
Copy link
Member

Hi @SrS2225a, could you please provide us with more information and maybe some example. It's not clear to me what you want to achieve or even if the issue is on mstest side.

@SrS2225a
Copy link
Author

Hello, sorry about that if I was not very clear. I provided a couple of examples in the imgur link. I thought that would be sufficient enough.

Basically, what I want is for the MSTest html file output to show each test case ran but it would hide this data instead, as you can see in the second imgur link. To get it to display, I would have to delete css property display: none it adds as the data is there as seen in the first imgur link. How can I get MSTest to show this data by default, or is it not possible?

@Evangelink
Copy link
Member

Just to confirm that I got it right. This is displaying
image

and it's not clear to you why the list is not expanded by default. It's hard to know because of UX but if you click on the assembly the list actually expands:

image

@Evangelink
Copy link
Member

Let me move the issue to vstest.

@Evangelink Evangelink transferred this issue from microsoft/testfx Dec 13, 2022
@SrS2225a
Copy link
Author

Yes, that is exactly right. The list will not be expanded by default. The only way how is to change the display property that is hiding it as you said

@Evangelink Evangelink changed the title MSTest hides data from html log output Expand results by default in html log output or make expand button more visible Jan 6, 2023
@nohwnd
Copy link
Member

nohwnd commented Jul 8, 2024

It looks like this now, expanding it by default would change the behavior for people who want it closed.

image

This is a new feature and won't be implemented, we are focusing on adding new features to Testing.Platform instead. https://aka.ms/testingplatform

@nohwnd nohwnd closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants