Merge branch 'main' of github.com:pimvanpelt/vppcfg into main
This commit is contained in:
10
README.md
10
README.md
@ -19,7 +19,7 @@ sudo pip3 install pyyaml
|
|||||||
sudo pip3 install pyinstaller
|
sudo pip3 install pyinstaller
|
||||||
|
|
||||||
## Ensure all unittests pass.
|
## Ensure all unittests pass.
|
||||||
./tests.py -t unittest/*.yaml
|
./tests.py -d -t unittest/yaml/*.yaml
|
||||||
|
|
||||||
## Build the tool
|
## Build the tool
|
||||||
pyinstaller vppcfg --onefile
|
pyinstaller vppcfg --onefile
|
||||||
@ -83,10 +83,12 @@ in the configuration file is able to be committed.
|
|||||||
|
|
||||||
It is incredibly important that changes to this codebase, particularly the validators, are well
|
It is incredibly important that changes to this codebase, particularly the validators, are well
|
||||||
tested. Unit tests are provided in the `unittests/` directory with a Python test runner in
|
tested. Unit tests are provided in the `unittests/` directory with a Python test runner in
|
||||||
`tests.py`. A test is a two-document YAML file, the first document describes the unit test
|
`tests.py`. Besides regular unittests provided by the Python framework, a YAMLTest is a test which
|
||||||
and the second document is a candidate configuration file to test.
|
reads a two-document YAML file, with the first document describing test metadata, and the second
|
||||||
|
document being a candidate configuration to test, and it then runs all schema and semantic
|
||||||
|
validators and reports back.
|
||||||
|
|
||||||
The format of the unit test is as follows:
|
The format of the YAMLTest is as follows:
|
||||||
```
|
```
|
||||||
test:
|
test:
|
||||||
description: str()
|
description: str()
|
||||||
|
Reference in New Issue
Block a user