-
Notifications
You must be signed in to change notification settings - Fork 149
Test environment creation
Thibault "bui" Koechlin edited this page Mar 2, 2021
·
3 revisions
In the root of hub repository there's a tests.sh
provided as a tool to help write some tests.
./tests.sh 16:56
Usage:
./tests.sh -h|--help Display this help message.
./tests.sh -i Init tests : prepare env tests
./tests.sh -g <CONFIG_PATH/name.yaml> Generate new test by specifying target config (parser|scenario|postoverflow)
./tests.sh --all Run all tests
./tests.sh --single <MYPATH/config.yaml> Run single test
To write a new test on a pristine repository:
./tests.sh -i
./tests.sh -g <path to the item configuration yaml>
The -i
call will fetch the hub-tests
repositories and build the necessary tooling, while -g
will create the needed .tests directory.