Exit code

By default, CI/CD servers mark build as passed or failed based on exit code of executed build steps. This behaviour can be amended using server-specific features or plugins, which allow to fail build based on build console output. Lightning returns non-zero exit code on non-zero number of failed tests.

JUnit XML report

Lightning produces JUnit XML report (junit.xml) for every run. Depending on which version of Lightning you use, location of this file will differ.

Sample report:

<?xml version="1.0" encoding="UTF-8"?>
<testsuite errors="0" failures="0" name="Lightning" tests="3" time="0">
    <testcase name="Failed transactions (%)" time="0"/>
    <testcase name="Failed transactions" time="0"/>
    <testcase name="80th percentile" time="0"/>
</testsuite>

This is a well-established test execution report format which can be picked up by your CI/CD server with no-to-minimal configuration. Check your CI/CD server help if it's not detected automatically.