...
Code Block |
---|
|
Project_root
├── ci_scripts/
│ ├── ci_atf.sh # <-- Upper CI script
│ ├── ...
│ └── ci_...sh
│
├── root_files.extension
├── root_directiories/
│
└── tests/
└── ci_scripts/
└── .iter-ci.sh # <-- Lower CI script
##############################################
- example: inside upper ci script: ci_atf.sh
##############################################
#!/bin/sh
./$(dirname $0)/../tests/ci_scripts/.iter-ci.sh |
Remote ITER CI side
On the remote side of ITER CI - Bamboo CI, you need to create a dedicated job for the Actor Testing Framework and a task to run the CI script. The image below shows how such a task can be configured with the top CI script.
...
Code Block |
---|
|
tests
├── main_code_run
│ └── run_actor.sh # <-- This file
.
.
. |
Test Cases - Pytest
Actor Testing Framework runs tests using the Python Pytest framework. This requires the user to have a basic understanding of the Pytest framework. All query related scripts are placed in the tests/pytest_scripts
directory. The user can provide as many test cases as needed and is responsible for writing them.
Code Block |
---|
|
tests
├── pytest_scripts
│ ├── conftest.py
│ ├── __init__.py
│ ├── pytest.ini
│ └── test_actor.py
.
.
. |