-
Notifications
You must be signed in to change notification settings - Fork 459
Expand file tree
/
Copy pathcode-coverage.yml
More file actions
30 lines (28 loc) · 1.8 KB
/
code-coverage.yml
File metadata and controls
30 lines (28 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% metadata_file .yamato/project.metafile %}
---
# Runs package tests in order to determine code coverage of the NGO package.
# In essence it's performing the same task as .yamato/package-test jobs with the overhead being the measured code coverage
# It's ok for code coverage to be performed only on one platform (default) since code coverage won't change much between those.
# Default platform was chosen (ubuntu) since it's the fastest and most resource friendly with default editor.
{% for platform in test_platforms.default -%}
{% for editor in validation_editors.default -%}
code_coverage_{{ platform.name }}_{{ editor }}:
name: Code Coverage - NGO [{{ platform.name }}, {{ editor }}]
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
commands:
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr && chmod +x utr
- upm-pvp create-test-project test-project --packages "upm-ci~/packages/*.tgz" --filter "com.unity.netcode.gameobjects" --unity .Editor
- 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
artifacts:
logs:
paths:
- "test-results/**/*"
- "CoverageResults/**/*"
dependencies:
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}
{% endfor -%}
{% endfor -%}