Skip to content

Bump MSTest.TestFramework from 3.7.0 to 4.1.0#130

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/nuget/tests/HVO.Common.Tests/multi-07d97aacfb
Closed

Bump MSTest.TestFramework from 3.7.0 to 4.1.0#130
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/nuget/tests/HVO.Common.Tests/multi-07d97aacfb

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 9, 2026

Updated MSTest.TestFramework from 3.7.0 to 4.1.0.

Release notes

Sourced from MSTest.TestFramework's releases.

4.1.0

See the release notes here

4.0.2

See the release notes here

4.0.1

See the release notes here

4.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);
    }
}
 ... (truncated)

## 4.0.0-preview.25372.6

This is a prerelease of MSTest v4. Docs on migration from v3 to v4 are in progress. We are working towards addressing the items tracked in #​1285 and #​5762

## 4.0.0-preview.25358.7

This is a prerelease of MSTest v4. Docs on migration from v3 to v4 are in progress. We are working towards addressing the items tracked in https://github.com/microsoft/testfx/issues/1285 and https://github.com/microsoft/testfx/issues/5762

## 3.11.1

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.11.1)

## 3.11.0

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.11.0)

## 3.10.5

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.10.5)


## 3.10.4

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.10.4)


## 3.10.3

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.10.3)


## 3.10.2

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.10.2)


## 3.10.1

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.10.1)


## 3.10.0

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.10.0)


## 3.9.3

## What's Changed

* Simpler fix for dotnet test when using retry by @​Youssef1313 in #​5732. Note that this PR targets rel/3.9 branch. For 3.10, we did a different fix: https://github.com/microsoft/testfx/pull/5717

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

**Full Changelog**: https://github.com/microsoft/testfx/compare/v3.9.2...v3.9.3

## 3.9.2

## What's Changed

* Fix MSTEST0042 (duplicate data row) false positive with Zero/NegativeZero by @​Youssef1313 in #​5684
* Allow framework authors to use TestCase.FullyQualifiedName as the TestNodeUid by @​Youssef1313 in #​5658
* Ensure TestMethodAttribute.Execute is run on the correct execution context by @​Youssef1313 in #​5688
* Avoid loading System.Threading.Tasks.Extensions when not needed by @​Youssef1313 in #​5694
* Fix UseAsync property in TestMethodAttribute derived classes to use type checks by @​Youssef1313 and @​Copilot in #​5708
* Fix UnitTestRunner leaking some test class instances by @​Youssef1313 in #​5715

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

**Full Changelog**: https://github.com/microsoft/testfx/compare/v3.9.1...v3.9.2

## 3.9.1

## What's Changed
* Make ConditionBaseAttribute.Mode public by @​youssef-backport-bot in https://github.com/microsoft/testfx/pull/5597
* Add missing overload for Assert.Throws by @​youssef-backport-bot in https://github.com/microsoft/testfx/pull/5620
* Fix System.MissingMethodException for KeyValuePair Deconstruction by @​youssef-backport-bot in https://github.com/microsoft/testfx/pull/5635
* Run the whole ExecuteInternal logic under the right execution context by @​youssef-backport-bot in https://github.com/microsoft/testfx/pull/5646
* VSTestBridge: Handle TestPropertyAttributes.Trait instead of special casing specific properties by @​youssef-backport-bot in https://github.com/microsoft/testfx/pull/5648

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

**Full Changelog**: https://github.com/microsoft/testfx/compare/v3.9.0...v3.9.1

## 3.9.0

In this release we focused a lot on providing fixes for MSTest and Microsoft.Testing.Platform. The most notable new features and fixes are:

## MSTest

* Allow async test methods for UITestMethod on UWP and WinUI by @​Youssef1313 in https://github.com/microsoft/testfx/pull/5297
* Add analyzer for duplicate data row by @​Youssef1313 in https://github.com/microsoft/testfx/pull/5144
* Fix ClassCleanup not called when the first test in class is ignored by @​Youssef1313 in https://github.com/microsoft/testfx/pull/5070
* Fix writing warnings outside of appdomain by @​nohwnd in https://github.com/microsoft/testfx/pull/5371

## Microsoft.Testing.Platform

* Add (alpha) Azure DevOps extension to report errors by @​nohwnd in https://github.com/microsoft/testfx/pull/5260
* Kill testhost if writing hang dump fails by @​Youssef1313 in https://github.com/microsoft/testfx/pull/5538

We've also improved the `dotnet test` experience in dotnet SDK, especially around Retry plugin experience, and started dogfooding the experience in our own repository. Please check out how to enable the new `dotnet test` experience for Microsoft.Testing.Platform in net10 by [following this link](https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-dotnet-test#microsofttestingplatform-mtp-mode-of-dotnet-test), and help us dogfood it.

## New Contributors
* @​stan-sz made their first contribution in https://github.com/microsoft/testfx/pull/5214
* @​YoshiRulz made their first contribution in https://github.com/microsoft/testfx/pull/5281
* @​bjornhellander made their first contribution in https://github.com/microsoft/testfx/pull/5300



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

**Full Changelog**: https://github.com/microsoft/testfx/compare/v3.8.3...v3.9.0

## 3.9.0-preview.25167.10



## 3.8.3

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.8.3)


## 3.8.2

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.8.2)


## 3.8.1

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.8.1)


## 3.8.0

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.8.0)

## Announcements

- This release adds new Assert APIs related to throwing exceptions, collections, and strings. Refer to the changelog for more information.
- This release adds support for generic test methods.
- This release adds few new analyzers.
- We added [`MSTestAnalysisMode`](https://learn.microsoft.com/en-us/dotnet/core/testing/mstest-analyzers/overview#mstestanalysismode). We encourage you to set this property to at least `Recommended`.
- This release adds `RetryAttribute`
- [Microsoft.Testing.Extensions.TrxReport](https://www.nuget.org/packages/Microsoft.Testing.Extensions.TrxReport) and [Microsoft.Testing.Extensions.CodeCoverage](https://www.nuget.org/packages/Microsoft.Testing.Extensions.CodeCoverage) are now a dependency of MSTest metapackage

## 3.7.3

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.7.3)

## 3.7.2

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.7.2)

## 3.7.1

See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#​3.7.1)

Commits viewable in [compare view](https://github.com/microsoft/testfx/compare/v3.7.0...v4.1.0).
</details>

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

---
updated-dependencies:
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MSTest.TestFramework
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 9, 2026

Labels

The following labels could not be found: dependencies, nuget. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

RoySalisbury added a commit that referenced this pull request Mar 26, 2026
Dependency updates (addresses Dependabot PRs #130-#134, #136-#139):
- OpenTelemetry.Api: 1.9.0 → 1.15.0
- OpenTelemetry.Extensions.Hosting: 1.9.0 → 1.15.0
- OpenTelemetry.Exporter.OpenTelemetryProtocol: 1.9.0 → 1.15.0
- StackExchange.Redis: 2.6.122 → 2.11.8
- Serilog: 3.1.1 → 4.3.1
- MSTest.TestAdapter: 3.7.0 → 4.1.0
- MSTest.TestFramework: 3.7.0 → 4.1.0
- Npgsql: 9.0.3 → 10.0.1 (test-only)
- Swashbuckle.AspNetCore: 10.1.2 → 10.1.4 (samples)
- dorny/test-reporter: v2 → v3 (CI workflow)

MSTest v4 migration:
- Replace Assert.ThrowsException with Assert.ThrowsExactly
- Replace Assert.ThrowsExceptionAsync with Assert.ThrowsExactlyAsync
- Convert [ExpectedException] attribute to Assert.ThrowsExactly pattern
- Replace [DataTestMethod] with [TestMethod] (unified in v4)
- Suppress MSTEST0032 (trivially-true assertions) in test props

OTel 1.15.0 compatibility:
- Suppress CS0618 for OtlpExportProtocol.Grpc on netstandard2.0

Package version bumps:
- HVO.Enterprise.Telemetry: 1.0.1 → 1.0.2
- HVO.Enterprise.Telemetry.OpenTelemetry: 1.1.0 → 1.1.1
- HVO.Enterprise.Telemetry.Data.Redis: 1.0.1 → 1.0.2
- HVO.Enterprise.Telemetry.Serilog: 1.0.1 → 1.1.0

Not merged (closing separately):
- RabbitMQ.Client 6→7 (#135): Major API overhaul requires dedicated story

Build: 0 warnings, 0 errors
Tests: 2158 passed, 9 skipped, 0 failed
Copy link
Copy Markdown
Owner

Superseded by #144 which batches all dependency updates together with required MSTest v4 migration fixes.

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 26, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/nuget/tests/HVO.Common.Tests/multi-07d97aacfb branch March 26, 2026 23:08
RoySalisbury added a commit that referenced this pull request Mar 27, 2026
* chore(deps): update dependencies and migrate to MSTest v4

Dependency updates (addresses Dependabot PRs #130-#134, #136-#139):
- OpenTelemetry.Api: 1.9.0 → 1.15.0
- OpenTelemetry.Extensions.Hosting: 1.9.0 → 1.15.0
- OpenTelemetry.Exporter.OpenTelemetryProtocol: 1.9.0 → 1.15.0
- StackExchange.Redis: 2.6.122 → 2.11.8
- Serilog: 3.1.1 → 4.3.1
- MSTest.TestAdapter: 3.7.0 → 4.1.0
- MSTest.TestFramework: 3.7.0 → 4.1.0
- Npgsql: 9.0.3 → 10.0.1 (test-only)
- Swashbuckle.AspNetCore: 10.1.2 → 10.1.4 (samples)
- dorny/test-reporter: v2 → v3 (CI workflow)

MSTest v4 migration:
- Replace Assert.ThrowsException with Assert.ThrowsExactly
- Replace Assert.ThrowsExceptionAsync with Assert.ThrowsExactlyAsync
- Convert [ExpectedException] attribute to Assert.ThrowsExactly pattern
- Replace [DataTestMethod] with [TestMethod] (unified in v4)
- Suppress MSTEST0032 (trivially-true assertions) in test props

OTel 1.15.0 compatibility:
- Suppress CS0618 for OtlpExportProtocol.Grpc on netstandard2.0

Package version bumps:
- HVO.Enterprise.Telemetry: 1.0.1 → 1.0.2
- HVO.Enterprise.Telemetry.OpenTelemetry: 1.1.0 → 1.1.1
- HVO.Enterprise.Telemetry.Data.Redis: 1.0.1 → 1.0.2
- HVO.Enterprise.Telemetry.Serilog: 1.0.1 → 1.1.0

Not merged (closing separately):
- RabbitMQ.Client 6→7 (#135): Major API overhaul requires dedicated story

Build: 0 warnings, 0 errors
Tests: 2158 passed, 9 skipped, 0 failed

* fix(otel): address PR review - default to HttpProtobuf transport, bump Serilog to v2.0.0

- Change default OTLP transport from gRPC to HTTP/Protobuf (port 4318)
  gRPC is deprecated on .NET Standard 2.0 targets in OTel SDK 1.15+
- Add _transportExplicitlySet flag so auto-detection only fires when
  Transport property was not explicitly configured by the consumer
- Bump HVO.Enterprise.Telemetry.Serilog to v2.0.0 (breaking: Serilog 3→4)
  with binding redirect guidance in release notes
- Update OtlpTransport enum XML docs (HttpProtobuf is now the default)
- Update all affected unit tests for new default values
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.

1 participant