Browse Source
Merge pull request #137 from lluiscampos/add-test-results-pipeline
Add xml results to GitLab so that they are displayed in the GUI
2.0.x
Lluis Campos
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
1 deletions
-
.gitlab-ci.yml
-
scripts/run-tests.sh
|
|
@ -55,3 +55,5 @@ test_acceptance: |
|
|
|
paths: |
|
|
|
- results_*.xml |
|
|
|
- report_*.html |
|
|
|
reports: |
|
|
|
junit: results_*.xml |
|
|
|
|
|
@ -99,6 +99,10 @@ convert_and_test() { |
|
|
|
|
|
|
|
cd ${WORKSPACE}/mender-image-tests |
|
|
|
|
|
|
|
# This is a trick to make pytest generate different junit reports |
|
|
|
# for different runs: renaming the tests folder to tests_<testsuite> |
|
|
|
cp -r tests tests_${device_type} |
|
|
|
|
|
|
|
python3 -m pytest --verbose \ |
|
|
|
--junit-xml="${MENDER_CONVERT_DIR}/results_${device_type}.xml" \ |
|
|
|
${html_report_args} \ |
|
|
@ -106,7 +110,8 @@ convert_and_test() { |
|
|
|
--test-variables="${MENDER_CONVERT_DIR}/deploy/${device_type}-${artifact_name}.cfg" \ |
|
|
|
--board-type="${device_type}" \ |
|
|
|
--mender-image=${device_type}-${artifact_name}.sdimg \ |
|
|
|
--sdimg-location="${MENDER_CONVERT_DIR}/deploy" |
|
|
|
--sdimg-location="${MENDER_CONVERT_DIR}/deploy" \ |
|
|
|
tests_${device_type} |
|
|
|
exitcode=$? |
|
|
|
|
|
|
|
cd - |
|
|
|