Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 9, 2025

This PR contains the following updates:

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

Release Notes

microsoft/testfx (MSTest)

v4.0.1

See the release notes here

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

See the MSTest changelog here: https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#4.0.0
See the Microsoft.Testing.Platform changelog here: https://github.com/microsoft/testfx/blob/main/docs/Changelog-Platform.md#2.0.0

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
Contributor Author

renovate bot commented Oct 9, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: src/Stryker.Abstractions/packages.lock.json, src/Stryker.Core/Stryker.Core.UnitTest/packages.lock.json, src/Stryker.TestRunner.VsTest.UnitTest/packages.lock.json, src/Stryker.Core/Stryker.Core/packages.lock.json, integrationtest/Validation/ValidationProject/packages.lock.json, src/Stryker.CLI/Stryker.CLI/packages.lock.json, src/Stryker.CLI/Stryker.CLI.UnitTest/packages.lock.json, src/Stryker.Options/packages.lock.json, src/Stryker.TestRunner.VsTest/packages.lock.json, src/Stryker.TestRunner/packages.lock.json, src/Stryker.Utilities/packages.lock.json, src/Stryker.DataCollector/Stryker.DataCollector/packages.lock.json, src/Stryker.RegexMutators/Stryker.RegexMutators.UnitTest/packages.lock.json, src/Stryker.RegexMutators/Stryker.RegexMutators/packages.lock.json
  Determining projects to restore...
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Utilities/Stryker.Utilities.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.VisualBasic 4.0.0 requires Microsoft.CodeAnalysis.Common (= 4.0.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved. [/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj]
  Restored /tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Utilities/Stryker.Utilities.csproj (in 7.21 sec).
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner/Stryker.TestRunner.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.VisualBasic 4.0.0 requires Microsoft.CodeAnalysis.Common (= 4.0.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved. [/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj]
  Restored /tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner/Stryker.TestRunner.csproj (in 133 ms).
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest/Stryker.TestRunner.VsTest.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.VisualBasic 4.0.0 requires Microsoft.CodeAnalysis.Common (= 4.0.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved. [/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj]
  Restored /tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest/Stryker.TestRunner.VsTest.csproj (in 3.71 sec).
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj : error NU1605: Warning As Error: Detected package downgrade: Microsoft.NET.Test.Sdk from 18.0.0 to 17.14.1. Reference the package directly from the project to select a different version. 
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj : error NU1605:  Stryker.TestRunner.VsTest.UnitTest -> MSTest 4.0.1 -> Microsoft.NET.Test.Sdk (>= 18.0.0) 
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj : error NU1605:  Stryker.TestRunner.VsTest.UnitTest -> Microsoft.NET.Test.Sdk (>= 17.14.1)
  Failed to restore /tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj (in 9.68 sec).
  Restored /tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.RegexMutators/Stryker.RegexMutators/Stryker.RegexMutators.csproj (in 3 ms).
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Options/Stryker.Configuration.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.VisualBasic 4.0.0 requires Microsoft.CodeAnalysis.Common (= 4.0.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved. [/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj]
  Restored /tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Options/Stryker.Configuration.csproj (in 9 ms).
  Restored /tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.DataCollector/Stryker.DataCollector/Stryker.DataCollector.csproj (in 145 ms).
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Core/Stryker.Core/Stryker.Core.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.VisualBasic 4.0.0 requires Microsoft.CodeAnalysis.Common (= 4.0.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved. [/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj]
  Restored /tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Core/Stryker.Core/Stryker.Core.csproj (in 267 ms).
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Core/Stryker.Core.UnitTest/Stryker.Core.UnitTest.csproj : error NU1605: Warning As Error: Detected package downgrade: Microsoft.NET.Test.Sdk from 18.0.0 to 17.14.1. Reference the package directly from the project to select a different version.  [/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj]
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Core/Stryker.Core.UnitTest/Stryker.Core.UnitTest.csproj : error NU1605:  Stryker.Core.UnitTest -> MSTest 4.0.1 -> Microsoft.NET.Test.Sdk (>= 18.0.0)  [/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj]
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Core/Stryker.Core.UnitTest/Stryker.Core.UnitTest.csproj : error NU1605:  Stryker.Core.UnitTest -> Microsoft.NET.Test.Sdk (>= 17.14.1) [/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj]
  Failed to restore /tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Core/Stryker.Core.UnitTest/Stryker.Core.UnitTest.csproj (in 30 ms).
/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Abstractions/Stryker.Abstractions.csproj : warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.VisualBasic 4.0.0 requires Microsoft.CodeAnalysis.Common (= 4.0.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved. [/tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.TestRunner.VsTest.UnitTest/Stryker.TestRunner.VsTest.UnitTest.csproj]
  Restored /tmp/renovate/repos/github/stryker-mutator/stryker-net/src/Stryker.Abstractions/Stryker.Abstractions.csproj (in 7 ms).

@renovate renovate bot force-pushed the renovate/major-mstest-monorepo branch 3 times, most recently from dfade05 to f4a6f1d Compare October 14, 2025 16:15
@renovate renovate bot force-pushed the renovate/major-mstest-monorepo branch from f4a6f1d to 6b02682 Compare October 14, 2025 20:46
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.

0 participants