| ... | @@ -67,10 +67,22 @@ Every available test in these modules will be compiled, stored in `<path_to_aidg |
... | @@ -67,10 +67,22 @@ Every available test in these modules will be compiled, stored in `<path_to_aidg |
|
|
|
|
|
|
|
Once the test binary file has been created with the latest command, you can run it or select and run individual unit-tests with optional flags to alter the output.
|
|
Once the test binary file has been created with the latest command, you can run it or select and run individual unit-tests with optional flags to alter the output.
|
|
|
|
|
|
|
|
- Select individual TEST_CASE using their user-defined tags
|
|
### Select a given test case
|
|
|
|
Select individual TEST_CASE using their user-defined tags
|
|
|
```bash
|
|
```bash
|
|
|
<path_to_bin>/tests_<module_name> [tag1][tag34]
|
|
<path_to_bin>/tests_<module_name> [tag1][tag34]
|
|
|
```
|
|
```
|
|
|
|
or with wildcards of their names (example with the `Unfold` operator) :
|
|
|
|
```bash
|
|
|
|
<path_to_bin>/tests_<module_name> [tag1][tag34] *nfold*
|
|
|
|
```
|
|
|
|
### Select a given section within the test_case
|
|
|
|
```bash
|
|
|
|
<path_to_bin>/tests_<module_name> *nfold* -c "section1" -c "subsection1.1"
|
|
|
|
```
|
|
|
|
> :warning: You need to write the whole path to the subsection you want, just giving `-c "subsection1.1"`
|
|
|
|
|
|
|
|
### Tips & tricks
|
|
|
- Specify a seed for the random sumber generator ([here](https://github.com/catchorg/Catch2/blob/devel/docs/command-line.md#specify-a-seed-for-the-random-number-generator))
|
|
- Specify a seed for the random sumber generator ([here](https://github.com/catchorg/Catch2/blob/devel/docs/command-line.md#specify-a-seed-for-the-random-number-generator))
|
|
|
- Time your functions with the [BENCHMARK macro](https://github.com/catchorg/Catch2/blob/devel/docs/benchmarks.md)
|
|
- Time your functions with the [BENCHMARK macro](https://github.com/catchorg/Catch2/blob/devel/docs/benchmarks.md)
|
|
|
|
|
|
| ... | | ... | |