Skip to content

Commit c3634aa

Browse files
Code coverage reports
1 parent 6765c5c commit c3634aa

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

.github/workflows/testDotnetPostgres.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ jobs:
8080
--configuration $CONFIGURATION \
8181
--connection "$ConnectionStrings__LocalDatabase"
8282
83-
- name: Test
84-
run: dotnet test -c $CONFIGURATION --collect:"XPlat Code Coverage" --results-directory ./coverage /p:ExcludeByFile="**/*Migrations/*.cs"
83+
- name: Run tests
84+
run: dotnet test -c $CONFIGURATION --settings coverlet.runsettings
8585

8686
- name: Code Coverage Report
8787
uses: irongut/[email protected]

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ autom4te.cache/
421421
*.tar.gz
422422
tarballs/
423423
test-results/
424+
coverage/
425+
coveragereport/
424426

425427
# Mac bundle stuff
426428
*.dmg

coverlet.runsettings

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<RunSettings>
2+
<DataCollectionRunSettings>
3+
<DataCollectors>
4+
<DataCollector friendlyName="XPlat Code Coverage">
5+
<Configuration>
6+
<CollectCoverage>true</CollectCoverage>
7+
<ExcludeByFile>**/*Migrations/*.cs</ExcludeByFile>
8+
</Configuration>
9+
</DataCollector>
10+
</DataCollectors>
11+
</DataCollectionRunSettings>
12+
</RunSettings>

exercise.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1212
IntegrationTestTemplate.txt = IntegrationTestTemplate.txt
1313
README.md = README.md
1414
UnitTestTemplate.txt = UnitTestTemplate.txt
15+
coverlet.runsettings = coverlet.runsettings
1516
EndProjectSection
1617
EndProject
1718
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "exercise.tests", "exercise.tests\exercise.tests.csproj", "{693E9261-FBC0-4112-95AF-2492AB6F1DE9}"
19+
EndProject
1820
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Diagrams_and_other_cool_stuff", "Diagrams_and_other_cool_stuff", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
1921
ProjectSection(SolutionItems) = preProject
2022
..\..\..\..\Downloads\teamdevsim_v2.drawio = ..\..\..\..\Downloads\teamdevsim_v2.drawio

0 commit comments

Comments
 (0)