Skip to content

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