test(GODT-3205): Report results from nightly integration tests to Testmo

This commit is contained in:
Gjorgji Slamkov
2024-07-16 09:04:27 +00:00
parent fc64dbec59
commit 54c56efdfa
4 changed files with 30 additions and 1 deletions

View File

@ -34,6 +34,7 @@ before_script:
stages: stages:
- analyse - analyse
- test - test
- report
- build - build
include: include:
@ -41,6 +42,7 @@ include:
- local: ci/rules.yml - local: ci/rules.yml
- local: ci/env.yml - local: ci/env.yml
- local: ci/test.yml - local: ci/test.yml
- local: ci/report.yml
- local: ci/build.yml - local: ci/build.yml
- component: gitlab.protontech.ch/proton/devops/cicd-components/devsecops/gitleaks/scan-repository@~latest - component: gitlab.protontech.ch/proton/devops/cicd-components/devsecops/gitleaks/scan-repository@~latest
inputs: inputs:

View File

@ -264,7 +264,8 @@ test-integration-race: gofiles
test-integration-nightly: gofiles test-integration-nightly: gofiles
mkdir -p coverage/integration mkdir -p coverage/integration
go test \ gotestsum \
--junitfile tests/result/feature-tests.xml -- \
-v -timeout=90m -p=1 -count=1 -tags=test_integration \ -v -timeout=90m -p=1 -count=1 -tags=test_integration \
${GOCOVERAGE} \ ${GOCOVERAGE} \
github.com/ProtonMail/proton-bridge/v3/tests \ github.com/ProtonMail/proton-bridge/v3/tests \

25
ci/report.yml Normal file
View File

@ -0,0 +1,25 @@
---
include:
- project: 'tpe/testmo-reporter'
ref: master
file: '/scenarios/testmo-script.yml'
testmo-upload:
stage: report
extends:
- .testmo-upload
- .rules-branch-manual-scheduled-and-test-branch-always
needs:
- test-integration-nightly
before_script: []
variables:
TESTMO_TOKEN: "$TESTMO_TOKEN"
TESTMO_URL: "https://proton.testmo.net"
PROJECT_ID: "9"
NAME: "Nightly integration tests"
MILESTONE: "Nightly integration tests"
SOURCE: "test-integration-nightly"
TAGS: "$CI_COMMIT_REF_SLUG"
RESULT_FOLDER: "tests/result/*.xml"

View File

@ -108,6 +108,7 @@ test-integration-nightly:
artifacts: artifacts:
when: always when: always
paths: paths:
- tests/result/feature-tests.xml
- nightly-job.log - nightly-job.log
test-coverage: test-coverage: