-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Content Testing | ||
|
||
The project has many tests that are run via `ctest` from [`cmake`](https://cmake.org/). | ||
The tests are defined in `tests/CMakeLists.txt`. | ||
All kinds tests ran with our `ctest` suite, including Python Unit tests, content validations, and if enabled Ansible syntax checks, among many others. | ||
For help on how to run the tests please review the test section from the [Building ComplianceAsCode](02_building_complianceascode) guide. | ||
|
||
## Python | ||
|
||
### `MyPy` | ||
|
||
Some utility scripts in the project are type checked with [mypy](http://mypy-lang.org/). | ||
If you are writing a new Python file in the project you should consider using MyPy. | ||
Add to your script to be type checked add path to your file in the `test-mypy` test in `tests/CMakeLists.txt`. | ||
|
||
### Unit Tests | ||
|
||
`ctest` is used to run the unit tests for the `ssg` python package that is in the repo. |
File renamed without changes.