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

Add option to order tests by name #3796

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Conversation

Evangelink
Copy link
Member

Following some recent discovery that the ordering capability of MSTest is only available in Test Explorer and provided by Test Explorer (discovered through a breaking change on Test Explorer side), we are introducing a new runsettings option to allow running tests in alpabetical order.

@Evangelink Evangelink merged commit 4959941 into microsoft:rel/3.6 Sep 10, 2024
7 checks passed
@Evangelink Evangelink deleted the order branch September 10, 2024 09:25
Evangelink added a commit that referenced this pull request Sep 10, 2024
@sbloomztf
Copy link

@Evangelink - What is the syntax for setting this option in a RunSettings file? My tests suddenly do not run in alpha order in the test explorer, and I am trying to use this new setting to restore this functionality.

@Evangelink
Copy link
Member Author

Sorry I am noticing I forgot to update the doc and should have been also more explicit here on usage:

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>

  <MSTest>
    <OrderTestsByNameInClass>true</OrderTestsByNameInClass>
  </MSTest>

</RunSettings>

@sbloomztf
Copy link

@Evangelink - Thanks! You saved the day! My tests now run in alpha order again!

@Evangelink
Copy link
Member Author

So glad to hear!

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

Successfully merging this pull request may close these issues.

2 participants