Skip to content

Conversation

@Evangelink
Copy link
Member

@Evangelink Evangelink commented Jan 20, 2026

Copilot AI review requested due to automatic review settings January 20, 2026 09:46
@Evangelink Evangelink requested review from a team and Youssef1313 as code owners January 20, 2026 09:46
@dotnetrepoman dotnetrepoman bot added this to the January 2026 milestone Jan 20, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request improves the MSTest analyzers documentation by reorganizing the content for better browsability. The changes add category-based and concept-based organization to help developers find relevant analyzer rules more easily.

Changes:

  • Restructured TOC to make category overview pages directly accessible (removed redundant "Overview" nesting)
  • Enhanced category overview pages (design, performance, suppression, usage) with comprehensive tables and scenario-based guidance
  • Added "Rules by concept" section to overview.md organizing rules by common testing scenarios
  • Added "All rules (quick reference)" table in overview.md for easy lookup

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
docs/navigate/devops-testing/toc.yml Improved navigation structure by linking category pages directly and removing nested "Overview" items
docs/core/testing/mstest-analyzers/usage-rules.md Added comprehensive rule table, organized rules by common scenarios (test structure, lifecycle, data-driven testing, assertions, TestContext, async, configuration)
docs/core/testing/mstest-analyzers/suppression-rules.md Added detailed explanations of suppression rules with examples showing why each rule suppresses specific diagnostics
docs/core/testing/mstest-analyzers/performance-rules.md Expanded with detailed guidance on test parallelization including when to enable/disable parallelization
docs/core/testing/mstest-analyzers/design-rules.md Organized design rules by scenarios (structuring classes, initialization/cleanup patterns, assertions, test quality)
docs/core/testing/mstest-analyzers/overview.md Added "Rules by concept" section and comprehensive "All rules" quick reference table
Comments suppressed due to low confidence (5)

docs/core/testing/mstest-analyzers/performance-rules.md:40

  • According to the Markdown Writing Style Instructions, write complete sentences in lists with proper punctuation. The bullet points should be complete sentences. For example, change "Tests have dependencies on shared resources" to "Tests have dependencies on shared resources." (add period) or rephrase as complete sentences.
- Tests have dependencies on shared resources
- Tests modify global state
- Tests require specific execution order
- You're debugging test failures

docs/core/testing/mstest-analyzers/usage-rules.md:66

  • According to the Markdown Writing Style Instructions, never use gerunds in titles. Change "Validating test structure" to a noun-based title, such as "Test structure validation" or use an imperative like "Validate test structure".
### Validating test structure

docs/core/testing/mstest-analyzers/design-rules.md:33

  • According to the Markdown Writing Style Instructions, never use gerunds in titles. Change "Structuring test classes" to a noun-based title, such as "Test class structure" or use an imperative like "Structure test classes".
### Structuring test classes

docs/core/testing/mstest-analyzers/design-rules.md:41

  • According to the Markdown Writing Style Instructions, never use gerunds in titles. Change "Choosing initialization patterns" to a noun-based title, such as "Initialization patterns" or "Initialization pattern selection".
### Choosing initialization patterns

docs/core/testing/mstest-analyzers/design-rules.md:55

  • According to the Markdown Writing Style Instructions, never use gerunds in titles. Change "Writing better assertions" to a noun-based title, such as "Better assertions" or "Assertion best practices".
### Writing better assertions

[MSTEST0045](mstest0045.md) | UseCooperativeCancellationForTimeoutAnalyzer | A test method uses <xref:Microsoft.VisualStudio.TestTools.UnitTesting.TimeoutAttribute> without setting the `CooperativeCancellation` property to `true`.
Design rules help you create and maintain test suites that adhere to proper design and good practices. These rules focus on test structure, best practices, and common patterns that lead to maintainable test code.

## Rules in this category
Copy link
Contributor

@adegeo adegeo Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In all of the articles, tables and lists are missing periods.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot please address review comment

Copy link
Contributor

Copilot AI commented Jan 23, 2026

@Evangelink I've opened a new pull request, #51301, to work on those changes. Once the pull request is ready, I'll request review from you.

…ion (#51301)

* Initial plan

* Add missing periods to tables and lists in analyzer rules documentation

Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
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.

5 participants