Skip to content

Commit 9d89d3a

Browse files
committed
Coverage options
1 parent 530c379 commit 9d89d3a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.yamato/code-coverage.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33

44
# Runs package tests in order to determine code coverage of the NGO package.
5-
# In essence it's performing the same task as .yamato/package-test jobs with the overhead being the measured code coverage
5+
# In essence, it's performing the same task as .yamato/package-test jobs with the overhead being the measured code coverage
66
# It's ok for code coverage to be performed only on one platform (default) since code coverage won't change much between those.
77
# Default platform was chosen (ubuntu) since it's the fastest and most resource friendly with default editor.
88
{% for platform in test_platforms.default -%}
@@ -16,13 +16,12 @@ code_coverage_{{ platform.name }}_{{ editor }}:
1616
commands:
1717
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
1818
- upm-pvp create-test-project test-project --packages "upm-ci~/packages/*.tgz" --unity .Editor
19-
- UnifiedTestRunner --suite=editor --suite=playmode --editor-location=.Editor --testproject=test-project --enable-code-coverage --coverage-results-path=upm-ci~/test-results/CodeCoverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime" --extra-editor-arg=--burst-disable-compilation --extra-editor-arg=testCategory --extra-editor-arg=!Performance --timeout=1800 --reruncount=1 --clean-library-on-rerun --artifacts-path=test-results
19+
- UnifiedTestRunner --suite=editor --suite=playmode --editor-location=.Editor --testproject=test-project --enable-code-coverage --coverage-results-path=test-results/CodeCoverage --coverage-options="generateHtmlReport;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime" --extra-editor-arg=--burst-disable-compilation --extra-editor-arg=testCategory --extra-editor-arg=!Performance --timeout=1800 --reruncount=1 --clean-library-on-rerun --artifacts-path=test-results
2020
artifacts:
2121
logs:
2222
paths:
23-
- "upm-ci~/test-results/CodeCoverage/**/*"
24-
- "test-results/CoverageResults/**/*"
25-
- "test-results/**/coverage.xml"
23+
- "test-results/**/*"
24+
- "test-results/CodeCoverage/**/*"
2625
dependencies:
2726
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}
2827
{% endfor -%}

0 commit comments

Comments
 (0)