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

Changelog 3.8 #4989

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 43 additions & 3 deletions docs/Changelog-Platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,49 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)

## <a name="1.6.0" />[1.6.0] - 2025-02-12

See full log [here](https://github.com/microsoft/testfx/compare/v3.7.3...v3.8.0)

### Added

* Implement != operator for filtering by @Youssef1313 in [#4494](https://github.com/microsoft/testfx/pull/4494)
* VSTestBridge: support filter at discovery + runsettings TestCaseFilter by @Youssef1313 in [#4921](https://github.com/microsoft/testfx/pull/4921)
* Add ability to wait for debugger attach by @Evangelink in [#4829](https://github.com/microsoft/testfx/pull/4829)
* Open experimentally Configuration and Logging by @Evangelink in [#4795](https://github.com/microsoft/testfx/pull/4795)
* avoid 2x string allocs in TerminalOutputDevice by @SimonCropp in [#4894](https://github.com/microsoft/testfx/pull/4894)

### Fixed

* Fix outputting of unhandled exception through OutputDevice by @Youssef1313 in [#4926](https://github.com/microsoft/testfx/pull/4926)
* Remove wrong closing double quotes in diag messages by @Evangelink in [#4826](https://github.com/microsoft/testfx/pull/4826)
* TestHost controller support mono by @Evangelink in [#4831](https://github.com/microsoft/testfx/pull/4831)
* Fix MTP MSBuild targets to run before BeforeCompile and XamlPreCompile by @Youssef1313 in [#4777](https://github.com/microsoft/testfx/pull/4777)
* Don't inject Test target when `TestingPlatformDisableCustomTestTarget` is true by @Youssef1313 in [#4838](https://github.com/microsoft/testfx/pull/4838)
* Make SelfRegisteredExtensions and EntryPoint types part of namespace by @Evangelink in [#4814](https://github.com/microsoft/testfx/pull/4814)
* Fix InvokeTestingPlatformTask to handle running with msbuild.exe and 'Test' target by @Youssef1313 in [#4840](https://github.com/microsoft/testfx/pull/4840)
* Fix ordering in server mode data consume by @Evangelink in [#4953](https://github.com/microsoft/testfx/pull/4953)
* Overwrite trx when file name is explicitly provided by @Youssef1313 in [#4654](https://github.com/microsoft/testfx/pull/4654)
* pass some missing cancellationTokens by @SimonCropp in [#4857](https://github.com/microsoft/testfx/pull/4857)

### Housekeeping

### Artifacts

* Microsoft.Testing.Extensions.CrashDump: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.CrashDump/1.6.0)
* Microsoft.Testing.Extensions.HangDump: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.HangDump/1.6.0)
* Microsoft.Testing.Extensions.HotReload: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.HotReload/1.6.0)
* Microsoft.Testing.Extensions.Retry: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.Retry/1.6.0)
* Microsoft.Testing.Extensions.Telemetry: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.Telemetry/1.6.0)
* Microsoft.Testing.Extensions.TrxReport: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.TrxReport/1.6.0)
* Microsoft.Testing.Extensions.TrxReport.Abstractions: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.TrxReport.Abstractions/1.6.0)
* Microsoft.Testing.Extensions.VSTestBridge: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.VSTestBridge/1.6.0)
* Microsoft.Testing.Platform: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Platform/1.6.0)
* Microsoft.Testing.Platform.MSBuild: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Platform.MSBuild/1.6.0)

## <a name="1.5.3" />[1.5.3] - 2025-01-27

See full log [here](https://github.com/microsoft/testfx/compare/v1.5.2...v1.5.3)
See full log [here](https://github.com/microsoft/testfx/compare/v3.7.2...v3.7.3)

### Fixed

Expand All @@ -27,7 +67,7 @@ See full log [here](https://github.com/microsoft/testfx/compare/v1.5.2...v1.5.3)

## <a name="1.5.2" />[1.5.2] - 2025-01-21

See full log [here](https://github.com/microsoft/testfx/compare/v1.5.1...v1.5.2)
See full log [here](https://github.com/microsoft/testfx/compare/v3.7.1...v3.7.2)

### Fixed

Expand All @@ -48,7 +88,7 @@ See full log [here](https://github.com/microsoft/testfx/compare/v1.5.1...v1.5.2)

## <a name="1.5.1" />[1.5.1] - 2025-01-13

See full log [here](https://github.com/microsoft/testfx/compare/v1.5.0...v1.5.1)
See full log [here](https://github.com/microsoft/testfx/compare/v3.7.0...v3.7.1)

### Fixed

Expand Down
106 changes: 106 additions & 0 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,112 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)

## <a name="3.8.0" />[3.8.0] - 2025-02-12

See full log [here](https://github.com/microsoft/testfx/compare/v3.7.3...v3.8.0)

### Added

* Introduce Assert.Throws(Async) and Assert.ThrowsExactly(Async) APIs by @Evangelink in [#4350](https://github.com/microsoft/testfx/pull/4350)
* Support generic test method by @Youssef1313 in [#4204](https://github.com/microsoft/testfx/pull/4204)
* Add support for ValueTuple for all target frameworks by @Evangelink in [#4360](https://github.com/microsoft/testfx/pull/4360)
* Auto detect DynamicDataSourceType by @Youssef1313 in [#4340](https://github.com/microsoft/testfx/pull/4340)
* Open source Retry and Hot Reload extensions by @Evangelink in [#4354](https://github.com/microsoft/testfx/pull/4354)
* Add DisplayMessage to TestContext by @Youssef1313 in [#4345](https://github.com/microsoft/testfx/pull/4345)
* Allow any IEnumerable as return type to DynamicData source member by @Evangelink in [#4389](https://github.com/microsoft/testfx/pull/4389)
* Allow AssemblyCleanup/ClassCleanup to have TestContext parameter by @Youssef1313 in [#4387](https://github.com/microsoft/testfx/pull/4387)
* Update ExpectedException codefix to use the new Assert.Throws\[Exactly\]\[Async\] overloads by @Youssef1313 in [#4504](https://github.com/microsoft/testfx/pull/4504)
* Introduce interpolated string handler overloads for assertions by @Youssef1313 in [#4476](https://github.com/microsoft/testfx/pull/4476)
* Add analyzer for value type usage with Assert.AreSame by @Youssef1313 in [#4493](https://github.com/microsoft/testfx/pull/4493)
* Allow DynamicData source to be on base types by @Youssef1313 in [#4482](https://github.com/microsoft/testfx/pull/4482)
* Use different message for Assert.AreEqual when string difference is casing only by @Youssef1313 in [#4525](https://github.com/microsoft/testfx/pull/4525)
* Report diagnostic when AreNotSame is passed value type by @Youssef1313 in [#4523](https://github.com/microsoft/testfx/pull/4523)
* Implement analyzer and codefix to switch to Assert.ThrowsExactly\[Async\] by @Youssef1313 in [#4459](https://github.com/microsoft/testfx/pull/4459)
* Update ExpectedException analyzer message/description to use the new Assert.Throws methods (and fix typo) by @Youssef1313 in [#4527](https://github.com/microsoft/testfx/pull/4527)
* Add ability to ignore specific test cases by @Youssef1313 in [#4457](https://github.com/microsoft/testfx/pull/4457)
* Implement codefix for MSTEST0026: Avoid conditional access in assertions (and small analyzer false positive) by @Youssef1313 in [#4502](https://github.com/microsoft/testfx/pull/4502)
* Add messageBuilder overloads for Assert.Throws\[Exactly\]\[Async\] by @Youssef1313 in [#4541](https://github.com/microsoft/testfx/pull/4541)
* Implement codefix for 'Are\[Not\]Same' usage with value types by @Youssef1313 in [#4584](https://github.com/microsoft/testfx/pull/4584)
* Reword unhandled TestMethodAttribute.Execute exception message by @Evangelink in [#4641](https://github.com/microsoft/testfx/pull/4641)
* Implement analyzer to warn for use of Assert methods in async void by @Youssef1313 in [#4640](https://github.com/microsoft/testfx/pull/4640)
* Introduce `RetryAttribute` for test methods by @Youssef1313 in [#4586](https://github.com/microsoft/testfx/pull/4586)
* Fix bad nullability annotation on CultureInfo by @Evangelink in [#4670](https://github.com/microsoft/testfx/pull/4670)
* Obsolete InternalTestFailureException and GenericParameterHelper by @Evangelink in [#4703](https://github.com/microsoft/testfx/pull/4703)
* Remove incorrect isReportedAtCompilationEnd for UseParallelizeAttributeAnalyzer by @Youssef1313 in [#4737](https://github.com/microsoft/testfx/pull/4737)
* Implement MSTestAnalysisMode by @Youssef1313 in [#4712](https://github.com/microsoft/testfx/pull/4712)
* Add Assert.HasCount by @Evangelink in [#4748](https://github.com/microsoft/testfx/pull/4748)
* Add UsingMSTestSdk property by @aelij in [#4754](https://github.com/microsoft/testfx/pull/4754)
* Add Assert.HasCount, Assert.IsEmpty, Assert.IsNotEmpty and Assert.ContainsSingle by @Evangelink in [#4756](https://github.com/microsoft/testfx/pull/4756)
* Support conditional tests by @Youssef1313 in [#4734](https://github.com/microsoft/testfx/pull/4734)
* MSTEST0030: add codefix by @Evangelink in [#4769](https://github.com/microsoft/testfx/pull/4769)
* Add Contains/DoesNotContain assert APIs by @Evangelink in [#4799](https://github.com/microsoft/testfx/pull/4799)
* Add GitHubWorkItem by @Evangelink in [#4813](https://github.com/microsoft/testfx/pull/4813)
* Disable MSTEST0026 by default by @Evangelink in [#4816](https://github.com/microsoft/testfx/pull/4816)
* Add MSTest trace logs when using MTP by @Evangelink in [#4833](https://github.com/microsoft/testfx/pull/4833)
* Fix some missing xml docs by @Evangelink in [#4841](https://github.com/microsoft/testfx/pull/4841)
* Add string Contains/DoesNotContain assertions by @Evangelink in [#4842](https://github.com/microsoft/testfx/pull/4842)
* Ensure all public APIs are documented by @Evangelink in [#4920](https://github.com/microsoft/testfx/pull/4920)
* Add UWP .NET 9 support for MSTest extensions by @Sergio0694 in [#3848](https://github.com/microsoft/testfx/pull/3848)
* Add TrxReport dependency to MSTest metapackage by @Youssef1313 in [#4956](https://github.com/microsoft/testfx/pull/4956)
* Add TestDataRow class by @Youssef1313 in [#4930](https://github.com/microsoft/testfx/pull/4930)
* Add SourceGen + Engine by @Evangelink in [#4966](https://github.com/microsoft/testfx/pull/4966)
* Add CodeCoverage to MSTest metapackage by @Youssef1313 in [#4962](https://github.com/microsoft/testfx/pull/4962)

### Fixed

* Don't consider TestClassAttribute for inheritance when calculating assembly initialize/cleanup by @Youssef1313 in [#4318](https://github.com/microsoft/testfx/pull/4318)
* Fix false positive for PreferTestCleanupOverDispose on non-test classes by @Youssef1313 in [#4378](https://github.com/microsoft/testfx/pull/4378)
* Report diagnostic if DynamicData is referencing a member that's not method/property (e.g, field) (and some cleanup) by @Youssef1313 in [#4383](https://github.com/microsoft/testfx/pull/4383)
* Fix MSTestV2Files msbuild items by @Evangelink in [#4405](https://github.com/microsoft/testfx/pull/4405)
* method scope fix by @SimonCropp in [#4415](https://github.com/microsoft/testfx/pull/4415)
* Fix analyzer messages not localized by @Youssef1313 in [#4434](https://github.com/microsoft/testfx/pull/4434)
* Best effort tracking for properties assigned indirectly via fields for TestContext analyzer by @Youssef1313 in [#4439](https://github.com/microsoft/testfx/pull/4439)
* Better handling of CTS and timeout tokens by @Evangelink in [#4444](https://github.com/microsoft/testfx/pull/4444)
* Don't report MSTEST0001 when TestAdapter isn't referenced by @Youssef1313 in [#4481](https://github.com/microsoft/testfx/pull/4481)
* Don't report diagnostic for DeploymentItem on abstract class by @Youssef1313 in [#4538](https://github.com/microsoft/testfx/pull/4538)
* Fix NaN behavior for Assert.AreEqual/AreNotEqual by @Youssef1313 in [#4536](https://github.com/microsoft/testfx/pull/4536)
* Fix ExpectedException codefix to handle few edge cases by @Youssef1313 in [#4560](https://github.com/microsoft/testfx/pull/4560)
* Fix MSTEST0002 (Test classes should have valid layout) codefix crash on records by @SimonCropp in [#4580](https://github.com/microsoft/testfx/pull/4580)
* MSTEST0018: Fix FP with types implementing IEnumerable by @Evangelink in [#4924](https://github.com/microsoft/testfx/pull/4924)
* Preserve TestIdGenerationStrategy in the execution AppDomain by @Youssef1313 in [#4942](https://github.com/microsoft/testfx/pull/4942)
* Ensure to use the test execution AppDomain for loading the test assembly by @Youssef1313 in [#4952](https://github.com/microsoft/testfx/pull/4952)
* MSTEST0029 do not report on implementation of interface by @Evangelink in [#4803](https://github.com/microsoft/testfx/pull/4803)

### Housekeeping

* Move TATF based tests to MSTest by @Evangelink in [#4348](https://github.com/microsoft/testfx/pull/4348)
* Reduce alloc in GetStackTraceInformation by @SimonCropp in [#4367](https://github.com/microsoft/testfx/pull/4367)
* Remove unused resources in TestAdapter by @Youssef1313 in [#4379](https://github.com/microsoft/testfx/pull/4379)
* Improve some flaky tests by @Evangelink in [#4381](https://github.com/microsoft/testfx/pull/4381)
* Fix flakiness on test Log_WhenAsyncFlush_StreamWriterIsCalledOnlyWhenLogLevelAllowsIt by @Evangelink in [#4394](https://github.com/microsoft/testfx/pull/4394)
* Simplify adapter props and targets by @Evangelink in [#4397](https://github.com/microsoft/testfx/pull/4397)
* Fix typo in analyzer message by @Youssef1313 in [#4452](https://github.com/microsoft/testfx/pull/4452)
* Hide DataTestMethodAttribute from IntelliSense by @Youssef1313 in [#4465](https://github.com/microsoft/testfx/pull/4465)
* Add API docs feedback template by @Youssef1313 in [#4687](https://github.com/microsoft/testfx/pull/4687)
* Drop unused source gen related code by @Evangelink in [#4662](https://github.com/microsoft/testfx/pull/4662)
* Don't make TestDataSourceDiscoveryOption obsolete by @Evangelink in [#4366](https://github.com/microsoft/testfx/pull/4366)
* Drop dependency to System.ValueTuple by @Evangelink in [#4398](https://github.com/microsoft/testfx/pull/4398)
* Remove AsyncTestProperty by @Youssef1313 in [#4725](https://github.com/microsoft/testfx/pull/4725)
* Cleanup VB entrypoint by @Youssef1313 in [#4884](https://github.com/microsoft/testfx/pull/4884)
* Fix doc about supported tfms by @Evangelink in [#4825](https://github.com/microsoft/testfx/pull/4825)
* Fix MSTest metapackage README by @Youssef1313 in [#4887](https://github.com/microsoft/testfx/pull/4887)
* Many cleanup PRs by @SimonCropp!

### Artifacts

* MSTest: [3.8.0](https://www.nuget.org/packages/MSTest/3.8.0)
* MSTest.TestFramework: [3.8.0](https://www.nuget.org/packages/MSTest.TestFramework/3.8.0)
* MSTest.TestAdapter: [3.8.0](https://www.nuget.org/packages/MSTest.TestAdapter/3.8.0)
* MSTest.Analyzers: [3.8.0](https://www.nuget.org/packages/MSTest.Analyzers/3.8.0)
* MSTest.Sdk: [3.8.0](https://www.nuget.org/packages/MSTest.Sdk/3.8.0)
* Microsoft.Testing.Extensions.CrashDump: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.CrashDump/1.6.0)
* Microsoft.Testing.Extensions.HangDump: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.HangDump/1.6.0)
* Microsoft.Testing.Extensions.HotReload: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.HotReload/1.6.0)
* Microsoft.Testing.Extensions.Retry: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.Retry/1.6.0)
* Microsoft.Testing.Extensions.TrxReport: [1.6.0](https://www.nuget.org/packages/Microsoft.Testing.Extensions.TrxReport/1.6.0)
* MSTest.SourceGeneration: [1.0.0-alpha.25112.8](https://www.nuget.org/packages/MSTest.SourceGeneration/1.0.0-alpha.25112.8)
* MSTest.Engine: [1.0.0-alpha.25112.8](https://www.nuget.org/packages/MSTest.Engine/1.0.0-alpha.25112.8)

## <a name="3.7.3" />[3.7.3] - 2025-01-27

See full log [here](https://github.com/microsoft/testfx/compare/v3.7.2...v3.7.3)
Expand Down