Commit 744beb99 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'feat/normalize-reports' into 'master'

Normalize reports

See merge request to-be-continuous/robotframework!24
parents 22048d53 645ff6a1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -61,6 +61,12 @@ the required CA certificates, or that runs as `root` (thus the template will be
* Tests are run automatically on `master` and `develop` branches, and manually on others (may be overridden setting the
  `REVIEW_ENABLED` variable).

In addition to a textual report in the console, this job produces the following reports, kept for one day:

| Report         | Format                                                                       | Usage             |
| -------------- | ---------------------------------------------------------------------------- | ----------------- |
| `reports/robotframework.xunit.xml` | [xUnit](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#xunit-compatible-result-file) test report(s) | [GitLab integration](https://docs.gitlab.com/ee/ci/yaml/artifacts_reports.html#artifactsreportsjunit) |

### Robot Framework `{{ BASE_URL }}` auto evaluation

By default, the Robot Framework template tries to auto-evaluate the [`{{ BASE_URL }}` variable](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#variables)
+4 −4
Original line number Diff line number Diff line
@@ -371,16 +371,16 @@ robotframework:
  extends: .robotframework-base
  stage: acceptance
  script:
    - mkdir -p rf_reports
    - robot_cli $ROBOT_OPTIONS --variable BROWSER:${ROBOT_BROWSER} --outputdir "rf_reports/" --xunit robot-junit.xml $ROBOT_TESTS_DIR
    - mkdir -p -m 777 reports
    - robot_cli $ROBOT_OPTIONS --variable BROWSER:${ROBOT_BROWSER} --outputdir reports/ --xunit robotframework.xunit.xml $ROBOT_TESTS_DIR
  artifacts:
    name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
    expire_in: 1 day
    paths:
      - rf_reports/
      - "reports/robotframework.*"
    reports:
      junit:
        - rf_reports/robot-junit.xml
        - reports/robotframework.xunit.xml
    when: always
  rules:
    - !reference [.acceptance-policy, rules]