Skip to content

Comments

order-unit-tests: clarify ordering vs. serial execution#51832

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-article-typo-ordering-tests
Draft

order-unit-tests: clarify ordering vs. serial execution#51832
Copilot wants to merge 2 commits intomainfrom
copilot/fix-article-typo-ordering-tests

Conversation

Copy link
Contributor

Copilot AI commented Feb 20, 2026

The article explained how to control test order but never addressed that tests can still run concurrently — leaving readers who want strictly serial execution without actionable guidance.

Changes

  • Top-level NOTE: ordering and parallelization are orthogonal; disabling parallelization is required to guarantee serial execution
  • MSTest: sequential within a class by default; parallelism requires explicit <Parallelize> in .runsettings
  • xUnit: classes run in parallel by default; ITestCaseOrderer serializes only within a single class; add [assembly: CollectionBehavior(DisableTestParallelization = true)] to disable globally
  • NUnit: sequential by default; [Order] is sufficient unless [Parallelizable] is applied
Original prompt

This section details on the original issue you should resolve

<issue_title>Article does not address the issue</issue_title>
<issue_description>### Type of issue

Typo

Description

The tests run in parallel NOT in series. I need the to run in an ORDER (ie in a series) and this article does not address this at all. At minimum the title is misleading at worse it is missing the point all together.

Page URL

https://learn.microsoft.com/en-us/dotnet/core/testing/order-unit-tests

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/testing/order-unit-tests.md

Document Version Independent Id

b82fafa9-47c1-1c5a-93a3-669782e915eb

Article author

@IEvangelist

Metadata

  • ID: a17b1fbc-2e79-c453-ef83-2ffff1683d5c
  • PlatformId: ce22304e-278e-cb39-2b5f-149262472864
  • Service: dotnet-fundamentals

Related Issues


Associated WorkItem - 550425</issue_description>

Comments on the Issue (you are @copilot in this section)

@gewarren cc @meaghanlewis

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.


Internal previews

📄 File 🔗 Preview link
docs/core/testing/order-unit-tests.md docs/core/testing/order-unit-tests

Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix misleading article on running tests in order order-unit-tests: clarify ordering vs. serial execution Feb 20, 2026
Copilot AI requested a review from meaghanlewis February 20, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Article does not address the issue

2 participants