-
Notifications
You must be signed in to change notification settings - Fork 266
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
DataRow execution is published as 'unspecified' with VSTest@3 task for Test plan #4738
Comments
Hello, I've also found this discussion #1026 (comment) where our AzDO colleagues point out the need to enable a feature flag in case you are running on on-prem instance. Is this the case for you? |
This should be an issue for the AzDO team, if you are still experiencing the issue, please file it here: https://developercommunity.visualstudio.com/AzureDevOps Sorry for no response for a long time and then just redirecting you elsewhere 🙇 The change on MSTest side is the trigger for the new behavior, but it was communicated to AzDO and fix for it was implemented, so I am not sure why it does not work. |
@nohwnd Thx for the update. I (my clients) need this for the cloud version, so the feature flag is not an option for me. I will replicate the issue to the dev community. |
Related dev community issue: https://developercommunity.visualstudio.com/t/MsTest-DataRow-execution-is-published-as/10856785 |
Describe the bug
We are using the VSTest@3 task in Azure DevOps for executing the MsTest test associated to Test Cases which having data rows in the test method (
[DataRow]
).Based on the issue suggestion at #992, we have disabled source discovery using
[assembly: TestDataSourceDiscovery(TestDataSourceDiscoveryOption.DuringExecution)]
When we run the pipeline, it logs all data rows as executed, but in the TestRun it is reported as a single test with 'unspecified' result. (In the TRX file that is attached to the TestRun all data row execution is recorded.)
When I downgrade MSTest.TestAdapter and MSTest.TestFramework to v2.2.3 (and remove
[TestDataSourceDiscovery]
) it works fine.Steps To Reproduce
[assembly: TestDataSourceDiscovery(TestDataSourceDiscoveryOption.DuringExecution)]
TestMethod1
to the Test CaseExpected behavior
Displays the data row test as sub-tests, like with MsTest 2.2.3:
Actual behavior
It is shown as 'Unspecified':
Also in the related Test Run:
Additional context
I have also tried with VSTest@2, made no difference.
The text was updated successfully, but these errors were encountered: