CloudBees action: Publish test results

1 minute read

Use this action to publish test results if you are using a CloudBees platform workflow. This action supports many popular testing tools, and enables testing results from running a platform workflow to be displayed in the Test results tab of Run details and in the Test insights analytics dashboard.

All CloudBees action repositories are listed at CloudBees, Inc. on GitHub.

Inputs

Table 1. Input details
Input name Data type Required Description

test-type

String

Yes

The name of the testing tool[1].

folder-name

String

Yes

The pattern, file, or directory path of the test report to convert.

[1] The testing tool name must be formatted correctly, in either all lowercase, or all uppercase.

Supported testing tools

Only the testing tools listed in the table below are supported for use in this action.

Use the given test-type input format to specify a testing tool.

Table 2. Supported testing tool names and test-type format

Supported tool name

Accepted test-type input formats

lowercase

UPPERCASE

GO

go

GO

Jest

jest

JEST

JMeter

jmeter

JMETER

JUnit

junit

JUNIT

MSTest

mstest

MSTEST

Playwright

playwright

PLAYWRIGHT

ProdPerfect

prodperfect

PRODPERFECT

Selenium

selenium

SELENIUM

TestNG

testng

TESTNG

Tosca

tosca

TOSCA

Usage example

In your YAML file, add:

- name: Publish test results uses: https://github.com/cloudbees-io/publish-test-results@v1 with: test-type: TESTNG folder-name: /example/mytest