Skip to content
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

chore(deps): update mstest monorepo to v3.5.0 #42

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 24, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
MSTest.TestAdapter 3.0.2 -> 3.5.0 age adoption passing confidence
MSTest.TestFramework 3.0.2 -> 3.5.0 age adoption passing confidence

Release Notes

microsoft/testfx (MSTest.TestAdapter)

v3.5.0

See the release notes here

v3.4.3

See the release notes here

v3.4.2: v.3.4.2

See the release notes here

v3.4.1

See the release notes here

v3.4.0

Here are the highlights of the current release, full change log is available below:

MSTest
New and improved analyzers

We've added more code analyzers to help you prevent mistakes, and to ensure a consistent code style of your tests.

One example of a new analyzer that was added in 3.4.0 is MSTEST0024: Do not store TestContext in static members. This analyzer has info severity by default, and will show a message, when you store TestContext in a static member in your class. This is not recommended, and you should be using a TestContext property instead:

image

The other analyzers added in this release:

If you've just learned about MSTest analyzers, please also check out the analyzers that were added in previous releases. They will help you ensure that your test classes and test methods are recognized by MSTest and are not accidentally ignored.

The analyzers are automatically installed with the MSTest NuGet meta-package. But can also be installed separately using the MSTest.Analyzers NuGet package.

More timeout options

Timeout can now be specified on all fixture methods, including ClassCleanup, AssemblyCleanup, TestCleanup and TestInitalize. In this case I want my [ClassCleanup] to time out after 1 second:

image

Alternatively timeouts can be specified through runsettings. For example like this:

<RunSettings>
  <MSTest>
    <ClassCleanupTimeout>1000</ClassCleanupTimeout>
  </MSTest>
</RunSettings>
Better errors on data mismatch

When you provide data that don't match your test method signature, the test will fail with an informative message, rather than just "Parameter count mismatch.".

image

image

(There is also an analyzer that helps with the same while you are writing the code.)

MSTest SDK updates

We've introduced MSTest project SDK in this .NET Blog post.

Choosing version in global.json

In this release we are promoting a way to define the MSTest.Sdk version in global.json. This makes it easier to specify the version in a single place, instead of in every project.

{
    "msbuild-sdks": {
        "MSTest.Sdk": "3.4.0"
    }
}
<Project Sdk="MSTest.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
  </PropertyGroup>
</Project>
Playwright support

We've added a property to enable Playwright, to simplify creating web tests:

<Project Sdk="MSTest.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>

    <EnablePlaywright>true</EnablePlaywright>
  </PropertyGroup>
</Project>
Aspire testing support

Similarly we've added a property to enable Aspire testing:

<Project Sdk="MSTest.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>

    <EnabledAspireTesting>true</EnabledAspireTesting>
  </PropertyGroup>
</Project>
Central package management

NuGet central package management can now be used together with MSTest.Sdk.

More examples of SDK projects

To see more examples of projects using MSTest.Sdk:
https://github.com/microsoft/testfx/tree/rel/3.4/samples/public/DemoMSTestSdk

MSTest runner
Simpler banner

We've took inspiration from MSBuild and simplified the runner banner, to show the information, on a single line:

.NET Testing Platform v1.2.0+3abae95b6 (UTC 2024/05/03) [win-x64 - .NET 8.0.4]
STA support and WinUI support

The runner can be configured to run in STA (Single Thread Apartment) mode, which is required for running UI tests. And it also supports WinUI workloads.

See MSTestRunnerWinUI example

And more

And much more, see the complete change log here: https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#3.4.0

New Contributors

A special thank you to all our new contributors:

v3.3.1

See the release notes here

v3.3.0

See the release notes here.

v3.2.2

See the release notes here.

v3.2.1

See the release notes here.

v3.1.1

See the release notes here.

v3.0.4

See the release notes here.

v3.0.3

See the release notes here.


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 becomes conflicted, 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.

@renovate renovate bot changed the title Update mstest monorepo to v2.2.10 Update mstest monorepo to v2.2.10 - autoclosed May 23, 2023
@renovate renovate bot closed this May 23, 2023
@renovate renovate bot deleted the renovate/mstest-monorepo branch May 23, 2023 12:46
@renovate renovate bot changed the title Update mstest monorepo to v2.2.10 - autoclosed Update mstest monorepo to v2.2.10 May 25, 2023
@renovate renovate bot reopened this May 25, 2023
@renovate renovate bot restored the renovate/mstest-monorepo branch May 25, 2023 12:11
@renovate renovate bot changed the title Update mstest monorepo to v2.2.10 Update mstest monorepo to v3.0.3 May 25, 2023
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from 6352ed3 to f1d5d6b Compare May 25, 2023 12:11
@renovate renovate bot changed the title Update mstest monorepo to v3.0.3 Update mstest monorepo to v3.0.4 Jun 1, 2023
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from f1d5d6b to 991b2ee Compare June 1, 2023 19:37
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate bot changed the title Update mstest monorepo to v3.0.4 Update mstest monorepo to v3.1.1 Jul 14, 2023
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from 991b2ee to 5ad8939 Compare July 14, 2023 10:39
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from 5ad8939 to 0f8fcde Compare January 24, 2024 16:24
@renovate renovate bot changed the title Update mstest monorepo to v3.1.1 Update mstest monorepo to v3.2.0 Jan 24, 2024
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from 0f8fcde to f1fbc1f Compare February 13, 2024 22:40
@renovate renovate bot changed the title Update mstest monorepo to v3.2.0 Update mstest monorepo to v3.2.1 Feb 13, 2024
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from f1fbc1f to 4d13d96 Compare February 22, 2024 15:03
@renovate renovate bot changed the title Update mstest monorepo to v3.2.1 Update mstest monorepo to v3.2.2 Feb 22, 2024
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from 4d13d96 to 9a9b9f1 Compare April 3, 2024 19:37
@renovate renovate bot changed the title Update mstest monorepo to v3.2.2 Update mstest monorepo to v3.3.0 Apr 3, 2024
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from 9a9b9f1 to 06212e3 Compare April 4, 2024 16:08
@renovate renovate bot changed the title Update mstest monorepo to v3.3.0 Update mstest monorepo to v3.3.1 Apr 4, 2024
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from 06212e3 to 501ddf4 Compare May 23, 2024 10:37
@renovate renovate bot changed the title Update mstest monorepo to v3.3.1 Update mstest monorepo to v3.4.0 May 23, 2024
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from 501ddf4 to fee74c9 Compare May 27, 2024 16:49
@renovate renovate bot changed the title Update mstest monorepo to v3.4.0 Update mstest monorepo to v3.4.1 May 27, 2024
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from fee74c9 to 0edf35d Compare May 30, 2024 13:27
@renovate renovate bot changed the title Update mstest monorepo to v3.4.1 Update mstest monorepo to v3.4.2 May 30, 2024
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from 0edf35d to 7ef9a95 Compare May 30, 2024 16:06
@renovate renovate bot changed the title Update mstest monorepo to v3.4.2 Update mstest monorepo to v3.4.3 May 30, 2024
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from 7ef9a95 to caa1080 Compare July 16, 2024 21:52
@renovate renovate bot changed the title Update mstest monorepo to v3.4.3 Update mstest monorepo to v3.5.0 Jul 16, 2024
@renovate renovate bot changed the title Update mstest monorepo to v3.5.0 chore(deps): update mstest monorepo to v3.5.0 Aug 5, 2024
@renovate renovate bot force-pushed the renovate/mstest-monorepo branch from caa1080 to 379046e Compare August 5, 2024 11:44
Copy link

sonarqubecloud bot commented Aug 5, 2024

@SondreJDigdir SondreJDigdir merged commit 0b07e25 into master Aug 5, 2024
5 checks passed
@renovate renovate bot deleted the renovate/mstest-monorepo branch August 5, 2024 11:49
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