Enum.Source.Generator
Enum.Source.Generator copied to clipboard
Bump MSTest.TestFramework from 3.2.2 to 3.6.0
Bumps MSTest.TestFramework from 3.2.2 to 3.6.0.
Release notes
Sourced from MSTest.TestFramework's releases.
v3.6.0
See the release notes here
Special shoutout to
@SimonCroppfor his exceptional contribution in improving the quality of the repository.v3.5.2
See the release notes here
v3.5.1
See the release notes here
v3.5.0
See the release notes here
v3.4.3
See the release notes here
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:
https://github.com/microsoft/testfx/compare/v3.3.1...v3.4.0
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 hasinfoseverity by default, and will show a message, when you storeTestContextin a static member in your class. This is not recommended, and you should be using aTestContextproperty instead:
The other analyzers added in this release:
- MSTEST0017: Assertion arguments should be passed in the correct order by
@Evangelinkin #2256- MSTEST0019: Prefer TestInitialize over ctor by
@Evangelinkin #2580- MSTEST0020: Prefer ctors over TestInitialize methods by
@Evangelinkin #2582- MSTEST0021: Prefer Dispose over TestCleanup methods by
@Evangelinkin #2585- MSTEST0022: Prefer 'TestCleanup' methods over Dispose by
@Evangelinkin #2586- MSTEST0023: Do not negate boolean assertions by
@Evangelinkin #2594- MSTEST0024: Do not store TestContext in static members by
@Evangelinkin #2597- Add PreferAssertFailOverAlwaysFalseConditionsAnalyzer by
@Youssef1313in #2799
... (truncated)
Changelog
Sourced from MSTest.TestFramework's changelog.
[3.6.0] - 2024-09-11
See full log here
Added
- Feat: Add code suppressor for CS8618 on TestContext property by
@Evangelinkin #3271- Feature: add support for injecting TestContext in ctor by
@Evangelinkin #3267- Feat: Add
[STATestClass]by@Evangelinkin #3278- Feat: Add [STATestMethod] by
@Evangelinkin #3286- Feat: add support for overloaded parameterized tests by
@Evangelinkin #3298- Improve display name for DynamicDataAttribute by
@Evangelinkin #3293- Feat: allow cooperative timeout by
@Evangelinkin #3314- MSTEST0010: report when class is abstract and inheritance is not set by
@engyebrahimin #3347- MSTEST0011: report when class is abstract and inheritance is not specified by
@engyebrahimin #3352- MSTEST0010: report if InheritanceBehavior.BeforeEachDerivedClass is set on a sealed class by
@engyebrahimin #3369- MSTEST0011: report if InheritanceBehavior.BeforeEachDerivedClass is set on a sealed class by
@engyebrahimin #3370- MSTEST0018: DynamicData usage should be valid by
@Evangelinkin #3374- Add analyzer for DeploymentItem by
@engyebrahimin #3387- MSTEST0004: Add code fix by
@engyebrahimin #3482- MSTEST0003: Add code fix by
@engyebrahimin #3493- Warn on invalid DisableParallelization configuration entry by
@engyebrahimin #3526- MSTEST0007: Add code fix by
@engyebrahimin #3540- MSTEST0002: Add code fix by
@engyebrahimin #3554- MSTEST0005: Add code fix by
@engyebrahimin #3571- MSTest.Sdk handles library mode by
@Evangelinkin #3581- MSTest.Sdk warn or error on invalid or untested properties by
@Evangelinkin #3603- MSTEST0036: Add analyzer for when a test member is shadowing another member by
@engyebrahimin #3589- Allows to cancel at multiple points before test execution by
@Evangelinkin #3723- Add option to order tests by name by
@Evangelinkin #3796Fixed
- Fix timeout message to reflect that 0 is not allowed by
@Evangelinkin #3279- Fix TestInitialize and TestCleanup analyzers to allow generic class by
@Evangelinkin #3280- Fix test case id filtering for server mode by
@MarcoRossignoliin #3284- Fix collectionAssert.AreEqual fails for list of lists by
@engyebrahimin #3275- MSTEST0034: Use CleanupBehavior.EndOfClass on ClassCleanupAttribute by
@engyebrahimin #3289- Fix MSTEST0029 false positive on TestInitialize/TestCleanup by
@engyebrahimin #3318- Fix passing null to DataRow when signature is object[] by
@Evangelinkin #3331- Fix spelling issues by
@Evangelinkin #3330- Fix: TestCleanup is always called in case of timeout by
@Evangelinkin #3334- Fix cooperative cancellation for TestInit/TestCleanup by
@Evangelinkin #3333- Fix message when step is canceled through TestContext by
@Evangelinkin #3335- Fix: Skip AssemblyInitialize/Cleanup when all tests are skipped by
@Evangelinkin #3339- Fix XmlDataConnection by
@Evangelinkin #3346- Fix class initialization/cleanup calls by
@Evangelinkin #3362- Fix Assert.VerifyThrows to use standard message pattern by
@Evangelinkin #3363- Refactor TestMethod DisplayName by
@Evangelinkin #3365- Fix display name for parameterized tests by
@Evangelinkin #3366
... (truncated)
Commits
db0db46[rel/3.6] Update dependencies from microsoft/testanywhere (#3803)4959941Add option to order tests by name (#3796)62659f7[rel/3.6] Update dependencies from devdiv/DevDiv/vs-code-coverage (#3795)db9387aRegenerate xlf0bc0bb8[rel/3.6] Update dependencies from microsoft/testanywhere (#3793)f3d9701Backport some localizationsb0f5c69[rel/3.6] Update dependencies from microsoft/testanywhere (#3791)4a4a538Cherry-pick fix skipped Test isn't shown as skipped/not executed in Trx Repor...60dc7a5[rel/3.6] Fix timedout test does not fail test run (in ui) (#3774)ff20766[rel/3.6] Fix running cleanup after first test method (#3764)- Additional commits viewable in compare view
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 commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)