From 780a6f350dacc1fd828a5541c7439a3ca3ec2d5a Mon Sep 17 00:00:00 2001 From: SteveGilham Date: Thu, 15 Aug 2024 19:36:02 +0100 Subject: [PATCH] One uncovered line --- Build/Pester.Tests.ps1 | 4 ++-- Build/actions.fs | 1 + ReleaseNotes - Previously.md | 33 ++++++++++++++++++++++++++++++++ ReleaseNotes.md | 37 +----------------------------------- 4 files changed, 37 insertions(+), 38 deletions(-) diff --git a/Build/Pester.Tests.ps1 b/Build/Pester.Tests.ps1 index caaf5c8b..d5cfd610 100644 --- a/Build/Pester.Tests.ps1 +++ b/Build/Pester.Tests.ps1 @@ -403,7 +403,7 @@ Describe "ConvertFrom-NCover" { "" + [System.IO.Path]::GetFullPath("./_Binaries/Sample4/Debug+AnyCPU/net9.0/Sample4.dll")) $result = $sw.ToString().Replace("`r", "").Replace("utf-16", "utf-8") - $result = $result.Replace("rapScore=`"13.12", "rapScore=`"13.13").Replace("rapScore=`"8.12", "rapScore=`"8.13") + $result = $result.Replace("rapScore=`"13.12", "rapScore=`"13.13").Replace("rapScore=`"8.12", "rapScore=`"8.13").Replace("Tests.DU/MyUnion/get_MyBa", "Tests.DU/get_MyBa") $result | Should -Be $expected.Replace("`r", "") $written = $written.Replace("rapScore=`"13.12", "rapScore=`"13.13").Replace("rapScore=`"8.12", "rapScore=`"8.13").Replace("`r", "") @@ -440,7 +440,7 @@ Describe "ConvertFrom-NCover" { "" + [System.IO.Path]::GetFullPath("./_Binaries/Sample4/Debug+AnyCPU/net9.0/Sample4.dll")) $result = $sw.ToString().Replace("`r", "").Replace("utf-16", "utf-8") - $result = $result.Replace("rapScore=`"13.12", "rapScore=`"13.13").Replace("rapScore=`"8.12", "rapScore=`"8.13") + $result = $result.Replace("rapScore=`"13.12", "rapScore=`"13.13").Replace("rapScore=`"8.12", "rapScore=`"8.13").Replace("Tests.DU/MyUnion/get_MyBa", "Tests.DU/get_MyBa") $result | Should -Be $expected.Replace("`r", "") } diff --git a/Build/actions.fs b/Build/actions.fs index 256ba107..33ccfe97 100644 --- a/Build/actions.fs +++ b/Build/actions.fs @@ -578,6 +578,7 @@ a:hover {color: #ecc;} coverageDocument.Descendants(XName.Get("Method")) |> Seq.collect _.Descendants(XName.Get("Name")) |> Seq.map _.Value.Replace("Tests.Program", "Program/Program") + |> Seq.map _.Replace("Tests.DU/MyUnion/get_MyBar", "Tests.DU/get_MyBar") // flaky |> Seq.sort |> Seq.toList diff --git a/ReleaseNotes - Previously.md b/ReleaseNotes - Previously.md index 37fa2acc..2416b363 100644 --- a/ReleaseNotes - Previously.md +++ b/ReleaseNotes - Previously.md @@ -1,5 +1,38 @@ # Previously +# 8.8.173 (Habu series release 32) +* [PERFORMANCE] Issue #227 - removing the slow-down observed the new (at 8.8.165) file name processing for Cobertura +* [PERFORMANCE] removing a surprising hot-spot in branch coverage instrumentation that was taking 60% of the whole instrumentation time + +# 8.8.165 (Habu series release 31) +* [ADVISORY] the Fake.build related assemblies (in the `altcover.api` and `altcover.fake` packages), and the Avalonia 0.10-based visualizer, rely on components with known vulnerabilities. The Fake.build project appears nigh-moribund so has not released an update, whereas Avalonia 11 completely rewrites all the earlier APIs and has not documented anything to assist in the rewrite of the application. +* [BUGFIX] Issue #197 - correctly split file paths in the Cobertura output +* [NET9 preparation] Recode the recorder into C# as compiler/build target changes in F#9 make maintaining net2.0 compatibility in F# too much bother. + +# 8.8.74 (Habu series release 30) +* [BUGFIX] Issue #222 - distinguish methods differing only in number of generic parameters (JSON and cobertura in particular, but with small changes for all all output formats) +* [BUGFIX] Issue #223 - handle degenerate source paths for Cobertura output + +# 8.8.53 (Habu series release 29) +* [BUGFIX] Fix summary data for `--outputFile` option +* [BUGFIX] Fix interaction of `--zipFile` prepare option and `--outputFile` collect option +* [BUGFIX] Issue #220 - improve dependency resolution to the GAC + +# 8.8.21 (Habu series release 28) +* [BREAKING; BUGFIX] Issue #206 : Update to net6+ for `dotnet test` integration and respect the `$(IsTestProject)` setting from the `Microsoft.NET.Test.Sdk` package. +* Simplify the use of the AltCover MSBuild tasks via the associated package-level `.targets` file by not even including the `VSTest` integration unless both `'$(AltCover)' == 'true' AND '$(IsTestProject)' == 'true'`. +* Mitigate instances of `System.IO.IOException: The process cannot access the file '[coverage report]' because it is being used by another process.` +* Explicitly add GAC locations to the paths inspected for dependency resolution + +# 8.8.10 (Habu series release 27) +* [BUGFIX] Add `Json` member to the report format enumerations for the typesafe API and for the `InvokeAltCover` cmdlet. +* [BUGFIX] Issue #214 : patch Mono.Cecil to use FIPS compliant algorithm +* [Enhancement] Discussion #206, maybe also Issue #203 : Option `--portable` and equivalent APIs to place the coverage report file and related coverage data in the same folder as the recorder assembly, wherever that might be, allowing the whole instrumented folder structure to be moved into another file structure (e.g. different machine, different OS). + +# 8.7.3 (Habu series release 26) +* [Enhancement] [Discussion 202](https://github.com/SteveGilham/altcover/discussions/202) : More careful tidying of temporary `.runsettings` files, fixing long-standing errors of both commission and omission. +* [Enhancement] [Discussion 199](https://github.com/SteveGilham/altcover/discussions/199) : Add `/p:AltCoverOutputRoot=[path]` and associated APIs for `dotnet test` command line creation. The `[path]` is a directory to be used instead of `$(TargetDir)` for the relative placing of the instrumented or saved files. The use-case here is when `$(TargetDir)` is close to `MAX_PATH` and the generated sub-folders would overflow that limit. + # 8.6.125 (Habu series release 25) * [BUGFIX] Issue 197 : Update `[InternalsVisibleTo]` references during instrumentation. Finally fixing an issue that's been there since 2010! diff --git a/ReleaseNotes.md b/ReleaseNotes.md index c4453ba6..39da359b 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -6,42 +6,7 @@ read the FAQ : https://github.com/SteveGilham/altcover/wiki/FAQ # (Indori series release 1) * [BREAKING] Minimum platforms net472, netstandard2.0 and net7.0 * [BREAKING] SDK updates to latest current for Cake and MSBuild-related packages - -# (Habu series release 33) * [ADVISORY] The Fake.build related assemblies (in the `altcover.api` and `altcover.fake` packages) support Fake 6.1.0 * [PERFORMANCE] revise the OpenCover to LCov conversion to speed the mapping of methods from source files. -# 8.8.173 (Habu series release 32) -* [PERFORMANCE] Issue #227 - removing the slow-down observed the new (at 8.8.165) file name processing for Cobertura -* [PERFORMANCE] removing a surprising hot-spot in branch coverage instrumentation that was taking 60% of the whole instrumentation time - -# 8.8.165 (Habu series release 31) -* [ADVISORY] the Fake.build related assemblies (in the `altcover.api` and `altcover.fake` packages), and the Avalonia 0.10-based visualizer, rely on components with known vulnerabilities. The Fake.build project appears nigh-moribund so has not released an update, whereas Avalonia 11 completely rewrites all the earlier APIs and has not documented anything to assist in the rewrite of the application. -* [BUGFIX] Issue #197 - correctly split file paths in the Cobertura output -* [NET9 preparation] Recode the recorder into C# as compiler/build target changes in F#9 make maintaining net2.0 compatibility in F# too much bother. - -# 8.8.74 (Habu series release 30) -* [BUGFIX] Issue #222 - distinguish methods differing only in number of generic parameters (JSON and cobertura in particular, but with small changes for all all output formats) -* [BUGFIX] Issue #223 - handle degenerate source paths for Cobertura output - -# 8.8.53 (Habu series release 29) -* [BUGFIX] Fix summary data for `--outputFile` option -* [BUGFIX] Fix interaction of `--zipFile` prepare option and `--outputFile` collect option -* [BUGFIX] Issue #220 - improve dependency resolution to the GAC - -# 8.8.21 (Habu series release 28) -* [BREAKING; BUGFIX] Issue #206 : Update to net6+ for `dotnet test` integration and respect the `$(IsTestProject)` setting from the `Microsoft.NET.Test.Sdk` package. -* Simplify the use of the AltCover MSBuild tasks via the associated package-level `.targets` file by not even including the `VSTest` integration unless both `'$(AltCover)' == 'true' AND '$(IsTestProject)' == 'true'`. -* Mitigate instances of `System.IO.IOException: The process cannot access the file '[coverage report]' because it is being used by another process.` -* Explicitly add GAC locations to the paths inspected for dependency resolution - -# 8.8.10 (Habu series release 27) -* [BUGFIX] Add `Json` member to the report format enumerations for the typesafe API and for the `InvokeAltCover` cmdlet. -* [BUGFIX] Issue #214 : patch Mono.Cecil to use FIPS compliant algorithm -* [Enhancement] Discussion #206, maybe also Issue #203 : Option `--portable` and equivalent APIs to place the coverage report file and related coverage data in the same folder as the recorder assembly, wherever that might be, allowing the whole instrumented folder structure to be moved into another file structure (e.g. different machine, different OS). - -# 8.7.3 (Habu series release 26) -* [Enhancement] [Discussion 202](https://github.com/SteveGilham/altcover/discussions/202) : More careful tidying of temporary `.runsettings` files, fixing long-standing errors of both commission and omission. -* [Enhancement] [Discussion 199](https://github.com/SteveGilham/altcover/discussions/199) : Add `/p:AltCoverOutputRoot=[path]` and associated APIs for `dotnet test` command line creation. The `[path]` is a directory to be used instead of `$(TargetDir)` for the relative placing of the instrumented or saved files. The use-case here is when `$(TargetDir)` is close to `MAX_PATH` and the generated sub-folders would overflow that limit. - -⁋For previous releases (8.6.125 and earlier) go here -- [https://github.com/SteveGilham/altcover/blob/master/ReleaseNotes%20-%20Previously.md](https://github.com/SteveGilham/altcover/blob/master/ReleaseNotes%20-%20Previously.md) \ No newline at end of file +⁋For previous releases (8.8.173 and earlier) go here -- [https://github.com/SteveGilham/altcover/blob/master/ReleaseNotes%20-%20Previously.md](https://github.com/SteveGilham/altcover/blob/master/ReleaseNotes%20-%20Previously.md) \ No newline at end of file