You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: