mirror of
https://github.com/trezor/trezor-firmware.git
synced 2026-02-20 00:33:30 +01:00
feat(ci): run persistence tests in UI testing mode
[no changelog]
This commit is contained in:
@@ -236,6 +236,7 @@ ui tests fixtures deploy:
|
||||
needs:
|
||||
- core click test
|
||||
- core device test
|
||||
- core persistence test
|
||||
- legacy device test
|
||||
script:
|
||||
- echo "Deploying to $DEPLOY_PATH"
|
||||
|
||||
@@ -14,6 +14,7 @@ core unix coverage posttest:
|
||||
<<: *gitlab_caching
|
||||
needs:
|
||||
- core click test
|
||||
- core persistence test
|
||||
- core device test
|
||||
- core monero test
|
||||
- core u2f test
|
||||
@@ -36,6 +37,7 @@ unix ui changes:
|
||||
<<: *gitlab_caching
|
||||
needs:
|
||||
- core click test
|
||||
- core persistence test
|
||||
- core device test
|
||||
- legacy device test
|
||||
script:
|
||||
|
||||
20
ci/test.yml
20
ci/test.yml
@@ -260,7 +260,7 @@ core fido2 asan test:
|
||||
expire_in: 1 week
|
||||
when: always
|
||||
|
||||
# Click tests.
|
||||
# Click tests - UI.
|
||||
# See [docs/tests/click-tests](../tests/click-tests.md) for more info.
|
||||
core click test:
|
||||
stage: test
|
||||
@@ -352,18 +352,31 @@ core upgrade asan test:
|
||||
expire_in: 1 week
|
||||
when: always
|
||||
|
||||
# Persistence tests.
|
||||
# Persistence tests - UI.
|
||||
core persistence test:
|
||||
stage: test
|
||||
<<: *gitlab_caching
|
||||
needs:
|
||||
- core unix frozen debug build
|
||||
variables:
|
||||
TREZOR_PROFILING: 1
|
||||
script:
|
||||
- $NIX_SHELL --run "poetry run pytest --junitxml=tests/junit.xml tests/persistence_tests | ts -s"
|
||||
- $NIX_SHELL --run "poetry run make -C core test_emu_persistence_ui | ts -s"
|
||||
after_script:
|
||||
- mv core/src/.coverage core/.coverage.test_persistence
|
||||
- mv tests/ui_tests/reports/test/ test_ui_report
|
||||
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
||||
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
||||
artifacts:
|
||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||
paths:
|
||||
- ci/ui_test_records/
|
||||
- test_ui_report
|
||||
- tests/ui_tests/screens/
|
||||
- tests/ui_tests/fixtures.suggestion.json
|
||||
- tests/trezor.log
|
||||
- tests/junit.xml
|
||||
- core/.coverage.*
|
||||
reports:
|
||||
junit: tests/junit.xml
|
||||
expire_in: 1 week
|
||||
@@ -436,6 +449,7 @@ crypto test:
|
||||
|
||||
# Legacy
|
||||
|
||||
# Legacy device test - UI.
|
||||
legacy device test:
|
||||
stage: test
|
||||
<<: *gitlab_caching
|
||||
|
||||
Reference in New Issue
Block a user