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

Code changes to fix PTR duplicate tests issue in linux #4427

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dogirala
Copy link
Contributor

Problem Statement: Vstest Publish Test Result for DataDriven tests for different inputs is showing against the same name, although in trx file their names are shown correctly.

Changes Summary: After Mstest Adapter changes from hierarchical to flat structure for data driven tests. DataDriven tests for different inputs is shown with duplicate names. The duplicate is because AutomatedTestName attribute is still getting generated as same for all the different inputs for a given testmethod and as a result only one entry is getting created in TestCaseReference table (This is the behaviour for hierarchical structure: one entry in testcasereference table and tests with different inputs as subresults). Expected behaviour is that each testcase should have one entry in the TestCaseReference table and in the flat structure every test with a data input is considered a separate testcase and there are no subresults for any testcase.

Notable change: Code changes are made to generate different AutomatedTestName for each testcase in DataDriven tests for flat structure. The existing hierarchical behaviour should not be affected by this change.

Assumptions: NA

Problem Statement: Vstest Publish Test Result for DataDriven tests for different inputs is showing against the same name, although in trx file their names are shown correctly.

Changes Summary: After Mstest Adapter changes from hierarchical to flat structure for data driven tests. DataDriven tests for different inputs is shown with duplicate names. The duplicate is because AutomatedTestName attribute is still getting generated as same for all the different inputs for a given testmethod and as a result only one entry is getting created in TestCaseReference table (This is the behaviour for hierarchical structure: one entry in testcasereference table and tests with different inputs as subresults). Expected behaviour is that each testcase should have one entry in the TestCaseReference table and in the flat structure every test with a data input is considered a separate testcase and there are no subresults for any testcase.

Notable change: Code changes are made to generate different AutomatedTestName for each testcase in DataDriven tests for flat structure. The existing hierarchical behaviour should not be affected by this change.

Assumptions: NA

Test Assurances: TODO: testing in progress

@dogirala dogirala requested review from a team as code owners September 11, 2023 02:24
@dogirala
Copy link
Contributor Author

azp /run

@dogirala dogirala added the bug label Sep 11, 2023
@dogirala
Copy link
Contributor Author

azp /run

@vinayakmsft
Copy link
Contributor

azp /run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants