Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update mstest monorepo to v4 (major) #273

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

Merged
sir-gon merged 1 commit into main from renovate/major-mstest-monorepo
Oct 8, 2025
Merged

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 8, 2025

This PR contains the following updates:

Package Change Age Confidence
MSTest.TestAdapter 3.11.0 -> 4.0.0 age confidence
MSTest.TestFramework 3.11.0 -> 4.0.0 age confidence

Release Notes

microsoft/testfx (MSTest.TestAdapter)

v4.0.0

What is new?
Assert.That

MSTest v4 adds a new type of assertion, that allows you to write any expression, and it will inspect the result to give you more information on failure. Providing a very flexible way to assert complicated expressions. Here a simple example:

[TestClass]
public sealed class Test1
{
 [TestMethod]
 public void TestMethod1()
 {
 var animal = "Tiger";
 var zoo = new Zoo();
 Assert.That(() => zoo.GetAnimal() == animal);
 }
}
public class Zoo
{
 public string GetAnimal()
 {
 return "Giraffe";
 }
}
Assert.That(() => zoo.GetAnimal() == animal) failed.
Details:
 animal = "Tiger" 
 zoo.GetAnimal() = "Giraffe"
CallerArgumentExpression

CallerArgumentExpression is consumed by all assertions, to make them aware of the expressions used in the assertion. In the example below we now know what both the expected and actual values are. But also what value they come from, giving us opportunity to provide better error messages:

[TestClass]
public sealed class Test1
{
 [TestMethod]
 public void TestMethod1()
 {
 string animal = null;
 Assert.AreEqual("Giraffe", animal);
 }
}
Error Message: Assert.AreEqual failed. Expected:<Giraffe>. Actual:<>. 
'expected' expression: '"Giraffe"', 'actual' expression: 'animal'.
Breaking changes

We hidden many types that should have never been public in the first place. We believe that most of the changes won't have any real user impact. For the changes where we expect user impact migration guide from v3 is provided: https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-migration-v3-v4

Full changelog here: microsoft/testfx@v3.11.0...v4.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

codecov bot commented Oct 8, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (91301cd) to head (3f4a0c8).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@
## main #273 +/- ##
=========================================
 Coverage 100.00% 100.00% 
=========================================
 Files 36 36 
 Lines 731 731 
 Branches 94 94 
=========================================
 Hits 731 731 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

sonarqubecloud bot commented Oct 8, 2025

@sir-gon sir-gon merged commit 60ab595 into main Oct 8, 2025
39 checks passed
@renovate renovate bot deleted the renovate/major-mstest-monorepo branch October 8, 2025 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /