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:
The other analyzers added in this release:
MSTEST0017: Assertion arguments should be passed in the correct order by @Evangelink in #2256
MSTEST0019: Prefer TestInitialize over ctor by @Evangelink in #2580
MSTEST0020: Prefer ctors over TestInitialize methods by @Evangelink in #2582
MSTEST0021: Prefer Dispose over TestCleanup methods by @Evangelink in #2585
MSTEST0022: Prefer 'TestCleanup' methods over Dispose by @Evangelink in #2586
MSTEST0023: Do not negate boolean assertions by @Evangelink in #2594
MSTEST0024: Do not store TestContext in static members by @Evangelink in #2597
Add PreferAssertFailOverAlwaysFalseConditionsAnalyzer by @Youssef1313 in #2799
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 rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show 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)
Bumps MSTest.TestAdapter from 3.0.0 to 3.6.0.
Release notes
Sourced from MSTest.TestAdapter's releases.
... (truncated)
Changelog
Sourced from MSTest.TestAdapter's changelog.
... (truncated)
Commits
db0db46
[rel/3.6] Update dependencies from microsoft/testanywhere (#3803)4959941
Add option to order tests by name (#3796)62659f7
[rel/3.6] Update dependencies from devdiv/DevDiv/vs-code-coverage (#3795)db9387a
Regenerate xlf0bc0bb8
[rel/3.6] Update dependencies from microsoft/testanywhere (#3793)f3d9701
Backport some localizationsb0f5c69
[rel/3.6] Update dependencies from microsoft/testanywhere (#3791)4a4a538
Cherry-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)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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show