Foresight Test Kit Action
A GitHub Action to analyze test and/or coverage results. Foresight’s Test Kit action integrates with your Github Actions pipelines.
- It makes simple to see failed tests, visualize performance of your tests and see their logs. It is the fastest way to access a failed test results in your workflow runs.
- It correlates the changes to the codebase with the test coverage reports to determine how much of the changes are covered by the tests.
You'll need to have a reasonably modern version of
node. This won't work with versions older than 9, for instance.
Foresight analyzes your test and coverage report artifacts.
Available test framework and report pairs:
|Test framework||Report format|
You don't need to fill report format fields marked as n/a.
Available coverage formats:
To use the action, add the following step after your test execution step. Please fill the
coverage_format fields by checking the supported options above.
You can get your
api_key after sign up to Foresight.
- name: Analyze Test and/or Coverage Results
if: success() || failure()
|Required||Foresight Api Key.|
|Optional||An alternative GitHub token, other than the default provided by GitHub Actions runner.|
|Optional||Runtime test framework name(jest, pytest, junit etc.)|
|Optional||Runtime test format name(trx, junit etc.)|
|Optional||Test results directory/file path.|
|Optional||Runtime coverage format name(jacoco/xml, cobertura/xml, golang etc.)|
|Optional||Coverage results directory/file path.|
|Optional||Installed Foresight cli version. Default is latest.|
|Optional||Disable Foresight test kit action without removing from yml.|