From 6a9f43c74e4e6ba0dced50f4733b1152b6a6d541 Mon Sep 17 00:00:00 2001 From: Valentina Novgorodtceva Date: Fri, 9 Feb 2024 13:29:26 +0700 Subject: [PATCH] chore: categories and environment section added to allure report --- test/e2e/ci/Jenkinsfile | 6 +++++ test/e2e/ext/allure_files/categories.json | 22 +++++++++++++++++++ .../ext/allure_files/environment.properties | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 test/e2e/ext/allure_files/categories.json create mode 100644 test/e2e/ext/allure_files/environment.properties diff --git a/test/e2e/ci/Jenkinsfile b/test/e2e/ci/Jenkinsfile index 6f7fe5902c..4bbab60c17 100644 --- a/test/e2e/ci/Jenkinsfile +++ b/test/e2e/ci/Jenkinsfile @@ -164,9 +164,15 @@ pipeline { } } } } } + post { always { script { archiveArtifacts('aut/*.log') + + /* Needed to categorize types of errors and add environment section in allure report. */ + sh 'cp ext/allure_files/categories.json allure-results' + sh 'cp ext/allure_files/environment.properties allure-results' + allure([ results: [[path: 'allure-results']], reportBuildPolicy: 'ALWAYS', diff --git a/test/e2e/ext/allure_files/categories.json b/test/e2e/ext/allure_files/categories.json new file mode 100644 index 0000000000..757c953657 --- /dev/null +++ b/test/e2e/ext/allure_files/categories.json @@ -0,0 +1,22 @@ +[ + { + "name": "Skipped tests", + "matchedStatuses": ["skipped"] + }, + { + "name": "Lookup errors", + "messageRegex": ".*LookupError.*" + }, + { + "name": "Lost connection", + "messageRegex": ".*Lost connection to AUT.*" + }, + { + "name": "Connection refused", + "messageRegex": ".*connection to AUT refused.*" + }, + { + "name": "Assertion errors", + "messageRegex": ".*AssertionError.*" + } +] diff --git a/test/e2e/ext/allure_files/environment.properties b/test/e2e/ext/allure_files/environment.properties new file mode 100644 index 0000000000..cd129fd779 --- /dev/null +++ b/test/e2e/ext/allure_files/environment.properties @@ -0,0 +1,2 @@ +os_platform = linux +python_version = Python 3.10