-
Notifications
You must be signed in to change notification settings - Fork 331
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
Can't list full test names from a DLL. #1732
Comments
This was meant for internal consumption only and is not even documented anywhere. @pvlakshm Can you please triage this. |
Yes, this is by design, and I suppose we can live with it. |
It's not a matter of "live with". Would it be too hard to implement for VSTest? |
It also makes it non-obvious to locate test failures in VSTS - where I'm told the test "Add" has failed out a selection of 150 other methods called "Add" :-) |
The following would work: |
I will close this - let me know if there are any concerns. |
@pvlakshm What channel should I reach if I want to address this at a development level? I fail to understand how needing to create a file just to get the full test names is a "design" decision. Is this also by design? |
@JunielKatarn We show the display name of the tests when executed using vstest.console.exe. Visual Studio does show the same display name but under a hierarchy of namespace/classname that helps in distinguishing the test methods. ListFullyQualifiedName option is something that we want to remove at some point. Are you looking for an option to just display the FullyQualifiedName ? If you can let us know the scenario where you needed it, it would help us provide a more appropriate response. @phatcher VSTS does have an option of grouping the tests under a container. I presume your classes with the same test methods are all in the same container ? What is the C++ test framework that you are using ? |
@cltshivash We are using both NUnit3 for dotnet and GoogleTest for C++ code. I would like the ability to cluster the tests under assembly + namespace + class as per Visual Studio, I'm not sure what you mean by container, I can see options for Test Suite, but we are not using that so we get something like this... I know this should be under the vsts-task but without the FQN being emitted from vstest I don't see how they would have enough information to be able to produce anything better |
@cltshivash The main issue is not listing the tests, but running them. Not all workflows, especially automated ones can rely on Visual Studio to tell the fully qualified test name. Can this be currently achieved, or is this a bug? |
@phatcher The UI for the test tab shows the test results grouped under the test file (in case of C++ it would be the dll). The name displayed is the DisplayName of the test case. Grouping based on namespace and class is not available in Azure Devops (VSTS). I would forward this to the concerned product owner and would recommend to open developer community ticket for this feature so that others can pitch in as well if they need it. P.S: The FQN information is stored on the service today. It is the information used to identify the test case. |
@JunielKatarn You can selectively run tests specifying the FQN as filter. https://github.com/Microsoft/vstest-docs/blob/master/docs/filter.md. Do let us know if this isn't sufficient. |
(Retaking this issue). Thanks, @cltshivash.
|
@phatcher I'm curently evaluating moving from TeamCity to Azure Pipelines. Did you find a solution? Not sure if the root issue is here or if the Azure team has already the information but is not making it available in the tests tab (and the issue should be reported to them). |
I'm using this test-runner to verify versions of our product with a set of tests that runs against a dedicated environment. Like others have reported we have multiple tests with similar or identical names. We run the test from the command line on a dedicated machine and the report is presented in a web interface. Having the ability to have the fully qualified name reported to the command line seems like a logical option. The fact that most other test frameworks has this option verifies this in my opinion. |
Hate to dredge up this old issue, but it's 2023.... When using MSTEST, we get the following output:
However, when using vstest.console we get the arguable less useful:
I know we can dump the names of the tests to an output file using the switches intended for internal use, but they don't have the status/result so are even less useful. |
MSTEST meaning mstest.exe? |
@doublehelix you should be able to do this in mstest using this workaround: microsoft/testfx#410 (comment) |
workaround is provided |
Unfortunately, the workaround is not applicable as we're not using mstest, instead we need to get the same output that mstest gives us, but from VSTest.Console. |
Description
Steps to reproduce
This will fail with message:
Expected behavior
Actual behavior
Diagnostic logs
Environment
The text was updated successfully, but these errors were encountered: