Skip to content

Commit

Permalink
Merge pull request #946 from Caliburn-Micro/945-fix-code-scanning-ale…
Browse files Browse the repository at this point in the history
…rt-missed-ternary-opportunity

Refactor code and update test coverage settings
  • Loading branch information
vb2ae authored Dec 16, 2024
2 parents e6e1305 + a8c5aa5 commit 50a84b0
Show file tree
Hide file tree
Showing 11 changed files with 303 additions and 56,500 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: msbuild ${{env.caliburn_sln}} /t:Build /p:Configuration=${{env.build_configuration}}

- name: Run Unit Tests
run: dotnet test ${{env.caliburn_sln}} --configuration ${{env.build_configuration}} -p:CollectCoverage=true -p:CoverletOutputFormat=json --no-build --verbosity normal
run: dotnet test ${{env.caliburn_sln}} --configuration ${{env.build_configuration}} --settings coverage.runsettings --no-build --verbosity normal

- name: Restore nuget packages for tutorial
run: msbuild ${{env.caliburn_tutorial}} -t:restore
Expand Down
20 changes: 20 additions & 0 deletions coverage.runsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="XPlat code coverage">
<Configuration>
<Format>json</Format>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
<InProcDataCollectionRunSettings>
<InProcDataCollectors>
<InProcDataCollector assemblyQualifiedName="Coverlet.Collector.DataCollection.CoverletInProcDataCollector, coverlet.collector, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null"
friendlyName="XPlat Code Coverage"
enabled="True"
codebase="coverlet.collector.dll" />
</InProcDataCollectors>
</InProcDataCollectionRunSettings>
</RunSettings>
Loading

0 comments on commit 50a84b0

Please sign in to comment.