Commit 0e394394 authored by Thomas Boni's avatar Thomas Boni
Browse files

add variable to tap-junit

parent 67985a42
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -102,6 +102,7 @@ customize its behavior.
| **FILTER_REGEX_INCLUDE**          | Regular expression defining which files will be processed by linters (ex: `.*src/.*`)                                                                                      | `all`                |
| **LOG_LEVEL**                     | How much output the script will generate to the console. One of `VERBOSE`, `DEBUG` or `TRACE`.                                                                             | `VERBOSE`            |
| **MULTI_STATUS**                  | A status API is made for each language that is linted to make visual parsing easier.                                                                                       | `true`               |
| **REPORT_SUITE_TEST_NAME**        | Name of test suite inside test report                   | `super_linter`       |

#### Linters configuration

+4 −2
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ super_linter:
    - mkdir ${CONVERTED_OUTPUT_FOLDER}
    - cd $OUTPUT_FOLDER
    - for report in *; do
    -     cat $report | tap-junit > ../${CONVERTED_OUTPUT_FOLDER}/${report}.xml
    -     cat $report | tap-junit -p -s "${REPORT_SUITE_TEST_NAME}" > ../${CONVERTED_OUTPUT_FOLDER}/${report}.xml
    - done
  variables:
    RUN_LOCAL: "true"
@@ -26,8 +26,10 @@ super_linter:
    OUTPUT_FOLDER: "super-linter.report"
    CONVERTED_OUTPUT_FOLDER: "converted-xml.report"
    TAP_JUNIT_VERSION: "4.0.0"
    REPORT_SUITE_TEST_NAME: "super_linter"
  artifacts:
    reports:
      junit: "${CONVERTED_OUTPUT_FOLDER}/*.xml"
    expire_in: 30 days
    paths:
      - "${CONVERTED_OUTPUT_FOLDER}/*.xml"
  allow_failure: true