My personnal master testsuite in python, only for fonctionnal tests.
Use python3.
Install all modules with:
pip install -r requirements.txt
To add tests use tests.yaml
file. Find the synthax in wiki.
Example of tests.yaml
file:
- name: "Basic echo tests"
baseInput: "echo"
tests:
- name: "hello_test"
input: "hello"
exp_out: "hello\n"
- name: "good_test"
input: "good"
exp_out: "good\n"
- name: "Basic cat from files"
baseInput: "cat"
tests_from_folder: "./tests/"
testsuite.py
can take arguments. To see all available arguments got to wiki or :
python3 testsuite.py --help
Enjoy !