feat(ci): run persistence tests in UI testing mode

[no changelog]
This commit is contained in:
grdddj
2023-03-30 12:44:05 +02:00
committed by Jiří Musil
parent d4304dc38b
commit f0223c7266
5 changed files with 47 additions and 23 deletions

View File

@@ -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"

View File

@@ -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:

View File

@@ -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