Releases: SteveGilham/altcover
Releases · SteveGilham/altcover
[DEPRECATED] Habu series release 6a
8.2.822
- [VISUALIZER] Support OpenCover's output from C++/CLI assemblies compiled
/Zi
(line information only, zero column values)- account for (& simplify) the C++/CLI attribute decorations in method names
- allow for (& simplify)
gcroot<type::with::Cpp::namespacing ^>
types in method names - allow source file selection for methods with code inlined from multiple source files
Habu series release 6
8.2.821
- Support deterministic builds
/p:ContinuousIntegrationBuild=true
, with or without--sourcelink
//p:AltCoverSourceLink=true
. Note that assemblies created by deterministic builds will be excluded by-l
//p:AltCoverLocalSource=true
. - Experiment with the ReadMe feature recently added to NuGet
- Internal refactoring of the JSON processing following the replacement of
System.Text.Encodings.Web
in the previous release.
Habu series release 5
8.2.820
- Replace System.Text.Encodings.Web for JSON-escaping module, class and method names
- [BUGFIX] issue #125 -- prevent an NullReferenceException is some cases of computing cyclomatic complexity (a failure to exactly copy the algorithm from Mono.Gendarme)
- [ENHANCEMENT; API] issue #126 -- further generalise the relative-directory support for
CopyAlways
/CopyIfNewer
from v7.4; extends theContingentCopy
MSBuild task
Habu series release 4
8.1.819
- Adapt to recent F# compiler optimizations that make function objects static if they don't close over their environment -- properly detect their owner functions for exclusion and for JSON format output
- If the report format is JSON, ensure that the coverage file doesn't end
.xml
, and if not JSON, that it doesn't end.json
(case-blind comparison)
Habu series release 3
8.1.817
Merge-OpenCover
cmdlet andOpenCover.Merge
API. It should handle both strict (OpenCover
,AltCover --reportFormat=OpenCover
) and more relaxed (coverlet
,ConvertFrom-CoverageJson
,Write-OpenCoverDerivedState -Coverlet
) interpretations- When
--callContext
indicates a method returning an F#async
computation, then track all calls within the same async flow, just as with C#async
methods from v7.2.800
Habu series release 2
8.0.816
- Move to Cake 1.0 as baseline for Cake support
- [VISUALIZER] Support for LCov and Cobertura format reports
- [VISUALIZER] For formats with only line-level information (e.g. LCov, Covertura or from coverlet), colour the whole line, and not just the line number gutter
Habu series release 1
8.0.815
- [BUGFIX] Issue 122 -- rework the method name tokenization for extracting the
returnType (argumentList)
signature extraction in the Cobertura output, fixing an off-by-one error that generatedreturnType argumentList)
without the(
as well as the headline exception. - [NEW] Native JSON report formatting (
--reportFormat=Json
or equivalents), a superset of coverlet's JSON- AltCover
classic
mode -- just running the instrumented code and collecting results in theProcessExit
handler -- is not supported with--reportFormat=Json
ConvertFrom-CoverageJson
cmdlet to convert from coverlet or AltCover JSON to a miminal OpenCover format- Preparing as Native JSON, to generate an LCov or Cobertura report at collection is supported
- AltCover
- [VISUALIZER] Both versions will now consume and display from coverlet and AltCover JSON output
- [BREAKING] the
-x, --xmlReport
argument or equivalent becomes just-r, --report
since not all reports are XML - [BREAKING] the stop-gap
--jsonReport
collection option from v7.6 is withdrawn, and the relatedConvertTo-CoverageJson
cmdlet now produces the AltCover native JSON format - For both LCov and Cobertura output, coalesce cases of multiple sequence points per line into one entry per line
- Extensions to coverlet's JSON format are as follows
Method
has optional fieldsSeqPnts
(array ofSeqPnt
)TId
(integer tracking ID)Entry
andExit
(arrays of timestamps)
BranchInfo
has optional fieldsId
(integer unique ID)Times
(array of timestamps) andTracks
(array of tracking IDs)
SeqPnt
isVC
(visit count),SL
(start line),SC
(start column),EL
,EC
(ditto for end),Offset
,Id
, all integers, and optionalTimes
andTracks
as forBranchInfo
- Because int64 doesn't fit as a double, tracking-related timestamps are represented as Base64Encoded strings of the ticks count as a network byte order quantity
Convert.ToBase64String(BitConverter.GetBytes(IPAddresss.HostToNetworkOrder(ticks)))
Genbu series release 15
7.6.812
- [VISUALIZER] Move the global tool to the new 0.10 AvaloniaUI release
- Monitor API
- [BUGFIX] Harden the monitor API
TryGetVisitTotals
against race conditions in multi-threaded tests - Publish the AltCover.Monitor API as API (i.e. under
lib/
) in the main packagealtcover
as well as inaltcover.api
(but not inaltcover.global
; global tools aren't library compatible to be accessed through apackage add
reference). It's there next to the PowerShell assembly (peraltcover ImportModule
) if you want to manually link to it, though - Support writing unit tests involving the API back to
net20
as well asnetstandard2.0
- [BUGFIX] Harden the monitor API
- Add
--jsonReport
option (and equivalents) to output the NCover or OpenCover data in a minified JSON format, like the existing--lcovReport
option does for that format. The JSON is a direct map of the XML, with values appropriately typed. - Add a
ConvertTo-CoverageJson
cmdlet and aConvertToJson
toolkit API to post-precess existing NCover/OpenCover reports
Genbu series release 14
7.5.809
- [NEW] AltCover.Monitor API to track current coverage from running unit tests. Current implementation requires
dotnet test
, or other command-line testing with--defer
set, in which the cumulative visit numbers are available, rather than everything having been dumped to file instead. - [BUGFIX] In OpenCover format output, only emit
<File />
records relevant to the respective module, not for all source files encountered so far.
Genbu series release 13
- [BUGFIX] In some use cases, the error
The "AltCover.ContingentCopy" task was not given a value for the required parameter "FileName".
could be provoked bydotnet test
(Issue #113) - Extend to other Build Action types (at least all those that my VS2019 Community Edition was prepared to mention) the "If
/p:AltCoverInPlace
is nottrue
, then copy all files in the project included as<[Action] Include="./[some subdirectory]/..."
withCopyToOutputDirectory
ofAlways
orPreserveNewest
to the appropriate relative location wrt the intrumented files" behaviour added for theNone
action in the previous release. File an issue report if you have yet another build action type that you need copying for a not-in-place test scenario.