Skip to content

Commit 47503b2

Browse files
committed
Updated code coverage
1 parent 4622fa9 commit 47503b2

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

.yamato/code-coverage.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ code_coverage_{{ platform.name }}_{{ editor }}:
1616
commands:
1717
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1818
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
19-
20-
- upm-ci package pack --package-path com.unity.netcode.gameobjects
21-
22-
- DISPLAY=:0 upm-ci package test -u {{ editor }} --package-path upm-ci~/packages/com.unity.netcode.gameobjects-*.tgz --artifacts-path=test-results --enable-code-coverage --coverage-results-path=CoverageResults --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"
19+
- DISPLAY=:0 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"
2320
artifacts:
2421
logs:
2522
paths:
26-
- "test-results/**/*"
27-
- "**/CoverageResults/**/*"
23+
- "upm-ci~/test-results/**/*"
24+
- "upm-ci~/test-results/CoverageResults/**/*"
25+
dependencies:
26+
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}_upmCI
2827
{% endfor -%}
2928
{% endfor -%}

.yamato/package-pack.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,27 @@ package_pack_-_ngo_{{ platform.name }}:
2525
packages:
2626
paths:
2727
- "upm-ci~/**"
28+
{% endfor -%}
29+
30+
# This is in essence the same job as the one above with the difference that upm-ci is used instead of upm-pvp
31+
# The reason for using it is that I had some problems with Code Coverage which in its current form uses upm-ci but if we would use the other pack job (the one above) we would need to use upm-pvp
32+
# I had some problems with getting it to work so as temporary solution I created this pack job which is used ONLY as a dependency of Code Coverage job (other jobs use the above definition of pack job)
33+
# TODO: remove this job and utilize the above one for Code Coverage job
34+
{% for platform in test_platforms.default -%}
35+
{% for project in projects.default -%}
36+
package_pack_-_ngo_{{ platform.name }}_upmCI:
37+
name: Package Pack (legacy upm-ci) - NGO [{{ platform.name }}]
38+
agent:
39+
type: {{ platform.type }}
40+
image: {{ platform.image }}
41+
flavor: {{ platform.flavor }}
42+
timeout: 0.25
43+
commands:
44+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
45+
- upm-ci project pack --project-path {{ project.path }}
46+
artifacts:
47+
packages:
48+
paths:
49+
- "upm-ci~/packages/**/*"
50+
{% endfor -%}
2851
{% endfor -%}

0 commit comments

Comments
 (0)