Skip to content

Introduce MSTest lifecycle documentation - #46540

Merged
BillWagner merged 7 commits into
dotnet:mainfrom
marcelwgn:dev/mstest-lifecycle
Jun 3, 2025
Merged

BillWagner merged 7 commits into
dotnet:mainfrom
marcelwgn:dev/mstest-lifecycle

Conversation

@marcelwgn

@marcelwgn marcelwgn commented Jun 3, 2025 •

Copy link
Copy Markdown
Contributor

Summary

This PR introduces documentation for the MSTest test lifecycle as discussed here: microsoft/testfx#5637


Internal previews

📄 File 🔗 Preview link
docs/core/testing/unit-testing-mstest-writing-tests-lifecycle.md MSTest lifecycle
docs/navigate/devops-testing/toc.yml docs/navigate/devops-testing/toc

@marcelwgn

marcelwgn commented Jun 3, 2025 •

Copy link
Copy Markdown
Contributor Author

Open questions:

  • Is the formatting fine?
  • Are the author fields filled out correctly?
  • What else need to be configured for this page to correctly show up in the navigation

@Youssef1313

Copy link
Copy Markdown
Member

What else need to be configured for this page to correctly show up in the navigation

You need to update toc.yml for that.

- name: Writing tests
items:
- name: Overview
href: ../../core/testing/unit-testing-mstest-writing-tests.md
- name: Examples
items:
- name: C# example
href: ../../core/testing/unit-testing-csharp-with-mstest.md
- name: F# example
href: ../../core/testing/unit-testing-fsharp-with-mstest.md
- name: VB example
href: ../../core/testing/unit-testing-visual-basic-with-mstest.md
- name: Attributes
href: ../../core/testing/unit-testing-mstest-writing-tests-attributes.md
- name: Assertions
href: ../../core/testing/unit-testing-mstest-writing-tests-assertions.md
- name: TestContext
href: ../../core/testing/unit-testing-mstest-writing-tests-testcontext.md

@Youssef1313
Youssef1313 requested a review from nohwnd June 3, 2025 09:37

@Youssef1313 Youssef1313 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @marcelwgn

This LGTM as well, and I'll :shipit: now.

@BillWagner
BillWagner enabled auto-merge (squash) June 3, 2025 14:06
@BillWagner
BillWagner merged commit 6f7ea0c into dotnet:main Jun 3, 2025
@marcelwgn
marcelwgn deleted the dev/mstest-lifecycle branch June 3, 2025 14:46

@Evangelink Evangelink left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am late in the review but I believe we should mention ctor (before test init) and dispose/disposeasync (after test cleanup) as they are also valid init/cleanup points.

Nevermind me, I can't read well today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants