LosTests Pub

test result publisher for Docker and Drone CI plugin to collect test results

Purchase a license

« To main page

LosTests Unit

Usage:

kind: pipeline
[...]
steps:
  [...]
  - name: report-tests
    image: elfuego/lostests-unit:1
    settings:
      url: http://<lostests-pub host>:8001
      relpath: test-reports
      secret:
        from_secret: lostests_secret
    when:
      status: [ success, failure ]

Plugin parameters:

secret

A password to access publisher must be the same as specified for the publisher instance

Example: secret: 123456

Example:

  secret:
    from_secret: lostests_secret

url

URL to publisher (a LosTests Pub instance)

Example: url: http://pub.example.com:8080/

relpath

A path (relative to CI_WORKSPACE value) to test reports. By default is null, so CI_WORKSPACE path is used to look for reports.

Example: relpath: test_reports

save_json

If true/yes/on, the plugin saves a JSON-file with collected test reports under the name lostests-testresults.json into the folder where reports were searched for.

Example: save_json: True

deep_scan

If true/yes/on, the plugin looks for test reports not only in specified folder, but in all nested folders. You can use this if you don’t know (or don’t care of) an actual relative path to test reports.

Example: deep_scan: True

test_mask

A regex which is used to search for test report files. Default is ^TEST-.*\.xml$.

Example: test_mask: ^.+\.xml$

add_filename

If true/yes/on, the plugin adds a current file name to suite names. If a suite is named test1 and the file containing it is named TEST-pgsql.xml then the acutal suite name would be pgsql-test1. You can use this if you run the same tests in different environments like cheching your software work on several DBMS.

Example: add_filename: True

« To main page