Test Actions#
Execute Scade One model test actions.
Test execution#
The test-execution action executes tests on a Scade One project for a given job
Input |
Description |
Required |
Default |
|---|---|---|---|
scade-dir |
Scade One installation directory, e.g.
|
True |
|
project |
Path of the Scade One project. |
True |
|
job-name |
Name of the job to run. This is used to identify the job in the Scade One actions workflow. |
True |
|
test-execution-report |
Path to the model tests exec report file. If not provided, the report will be
saved in the ‘output’ directory with the name |
False |
output/tests_exec_report.xml |
python-version |
Python version used for installation and execution of the build process. |
False |
3.10 |
use-python-cache |
Whether to use the Python cache to install previously downloaded libraries. |
False |
pip |
fail-on-error |
Set action as failed if test report contains any failed test. |
False |
true |
checkout |
Whether to clone the repository on the CI/CD machine. |
False |
true |
Example#
Test execution basic example
test-execution:
name: "Test execution basic example"
runs-on: [self-hosted, 'ScadeOne']
steps:
- name: "Execute tests"
uses: ansys/scadeone-actions/test-execution@v1.0
with:
scade-dir: 'C:\Program Files\Ansys Inc\v261\Scade One'
project: 'Model\QuadFlightControl\QuadFlightControl.sproj'
job-name: 'QuadTest'