You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use VSTest integration for Coverlet
FixesAzure#15231. Relates to Azure#14427.
* Do not ignore CompilerGeneratedAttribute
See coverlet-coverage/coverlet#794 (comment)
* Enable code coverage for PRs
* Publish code coverage even for failed tests
* Enable code coverage reports
ResolvesAzure#14427 by limiting reports to a single service directory (CIs) or per test project (dev environments). For CIs, full coverage reports of everything build will be uploaded. For dev environments, a summary HTML file will be output to test projects' TestResults directories.
* Fix filefilters path for CI
* Use absolute path for filefilters
Same as dev support; reportgenerator documentation is not clear on when absolute or relative paths are required.
* Use absolute path for reports
* Update report directory to limit globbing
* Disable code coverage of track 2 mgmt
Opened Azure#17090 to track re-enabling once improved.
* Generate report before uploading test results
The exact same commands are working locally using the same versions of ReportGenerator, sans running the test publishing executable. There's also extra coverage files showing up that I'm wondering if it's responsible.
* Temporarily upload all code coverage artifacts
* Split between props and targets again
At one point, this mostly worked. Going back to how I was split between props and targets before to see if that makes a difference.
* Collect more information
* Always define CoverletGetPathMap
@clairernovotny recommended important some changes. These are working locally when simulating a CI, so 🤞.
* Resolve PR feedback
Fix extra (temporary) logging as well.
* Use different variable to detect CI
ContinuousIntegrationBuild wasn't defined for test projects.
* Replace curly braces with Of in file names
FixesAzure#17164
* Removing extra logging
* Renames files with curly braces
FixesAzure#17164
* Resolve PR feedback
* Do not reformat HTML coverage report
<_IsCodeCoverableCondition="'$(IsClientLibrary)' == 'true' and '$(IsMgmtClientLibrary)' != 'true'">true</_IsCodeCoverable>
4
+
</PropertyGroup>
5
+
6
+
<PropertyGroupCondition="'$(CollectCoverage)' == 'true' and '$(_IsCodeCoverable)' == 'true' and '$(IsTestProject)' == 'true' and '$(ExcludeFromCodeCoverage)' != 'true'">
<!-- Prevent https://github.com/Azure/azure-sdk-for-net/issues/17164 from becoming an issue further in the build process -->
55
+
<_ContainsCurlyBracesInclude="@(Compile)"Condition="$([MSBuild]::ValueOrDefault('%(Directory)%(Filename)', '').Contains('{')) or $([MSBuild]::ValueOrDefault('%(Directory)%(Filename)', '').Contains('}'))" />
56
+
</ItemGroup>
57
+
<Error
58
+
Text="File name '%(_ContainsCurlyBraces.FullPath)' cannot contain { or }; remove type parameters from the file name, or change {T} to OfT and disable SA1649 if the class has a non-generic counterpart (https://github.com/Azure/azure-sdk-for-net/issues/17164)."
59
+
Condition="'@(_ContainsCurlyBraces)' != ''" />
60
+
</Target>
61
+
62
+
<!--
63
+
Allows Collection of Code Coverage for Deterministic Builds:
<CoverletOutputFormatCondition="'$(CoverletOutputFormat)' == '' and '$(CollectCoverage)' == 'true'">cobertura</CoverletOutputFormat>
59
58
<InheritDocEnabled>false</InheritDocEnabled>
60
59
</PropertyGroup>
61
60
@@ -97,7 +96,8 @@
97
96
<PropertyGroupCondition="'$(IsTestProject)' == 'true' or '$(IsTestSupportProject)' == 'true' or '$(IsSamplesProject)' == 'true' or '$(IsPerfProject)' == 'true' or '$(IsStressProject)' == 'true'">
0 commit comments