Skip to content

Commit 73091ac

Browse files
committed
Rewritten CodeCoverage job to utilize upm-pvp
1 parent db5fefe commit 73091ac

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.yamato/code-coverage.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ code_coverage_{{ platform.name }}_{{ editor }}:
1414
image: {{ platform.image }}
1515
flavor: {{ platform.flavor }}
1616
commands:
17-
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1817
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
19-
- {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %} upm-ci package test -u {{ editor }} --package-path com.unity.netcode.gameobjects --enable-code-coverage --code-coverage-options 'generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime' --extra-utr-arg="--extra-editor-arg=--burst-disable-compilation --extra-editor-arg=-testCategory --extra-editor-arg=!Performance --timeout=1800 --reruncount=1 --clean-library-on-rerun"
18+
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr && chmod +x utr
19+
20+
- upm-pvp create-test-project test-project --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects" --unity .Editor
21+
- DISPLAY=:0 ./utr --suite=editor --suite=playmode --editor-location=.Editor --testproject=test-project --enable-code-coverage --coverage-options='generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime' --artifacts-path=test-results --coverage-results-path=CoverageResults --extra-editor-arg=--burst-disable-compilation --extra-editor-arg=-testCategory --extra-editor-arg=!Performance --reruncount=1 --clean-library-on-rerun
2022
artifacts:
2123
logs:
2224
paths:
23-
- "upm-ci~/test-results/**/*"
25+
- "test-results/**/*"
26+
- "CoverageResults/**/*"
2427
dependencies:
2528
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}
2629
{% endfor -%}

0 commit comments

Comments
 (0)