diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b269d9c6..0b974e6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,6 +34,7 @@ before_script: stages: - analyse - test + - report - build include: @@ -41,6 +42,7 @@ include: - local: ci/rules.yml - local: ci/env.yml - local: ci/test.yml + - local: ci/report.yml - local: ci/build.yml - component: gitlab.protontech.ch/proton/devops/cicd-components/devsecops/gitleaks/scan-repository@~latest inputs: diff --git a/Makefile b/Makefile index 18c4163a..718c4ede 100644 --- a/Makefile +++ b/Makefile @@ -264,7 +264,8 @@ test-integration-race: gofiles test-integration-nightly: gofiles mkdir -p coverage/integration - go test \ + gotestsum \ + --junitfile tests/result/feature-tests.xml -- \ -v -timeout=90m -p=1 -count=1 -tags=test_integration \ ${GOCOVERAGE} \ github.com/ProtonMail/proton-bridge/v3/tests \ diff --git a/ci/report.yml b/ci/report.yml new file mode 100644 index 00000000..f16f816c --- /dev/null +++ b/ci/report.yml @@ -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" diff --git a/ci/test.yml b/ci/test.yml index aba9d33c..664f5b72 100644 --- a/ci/test.yml +++ b/ci/test.yml @@ -108,6 +108,7 @@ test-integration-nightly: artifacts: when: always paths: + - tests/result/feature-tests.xml - nightly-job.log test-coverage: