-
Notifications
You must be signed in to change notification settings - Fork 459
Expand file tree
/
Copy pathcode-coverage.yml
More file actions
28 lines (27 loc) · 1.65 KB
/
code-coverage.yml
File metadata and controls
28 lines (27 loc) · 1.65 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
{% 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:
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- unity-downloader-cli -u {{ editor }} -c Editor --fast --wait
- 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"
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
- "upm-ci~/test-results/CoverageResults/**/*"
dependencies:
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}_upmCI
{% endfor -%}
{% endfor -%}