Build Time Actions
Note
All examples assume the CMake generator is Unix Makefiles
, and
therefore all targets can be built with make
; adjust as needed if
you use a different generator.
Actions That Build Things
|
Build all of the unit tests for the project. If you want to just build a
single unit test, you can do make hfsm-utest
for a single unit test named Requires that |
---|---|
|
Build all of the integration tests for the project. If you want to just
build a single test, you can do make hfsm-itest
for a single unit test named Requires that |
|
Build Requires that |
|
Build all of the integration and unit tests for the project; same as
Requires that |
Actions For Supporting SW Engineering
make target |
Description |
---|---|
|
Run all of the built tests for the project via |
|
Run ALL enabled formatters on the repository. This runs the following sub-targets, which can also be run individually:
|
|
Run ALL enabled static checkers on the repository. This runs the following sub-targets, which can also be run individually:
Changed in version 0.8.5: This family of targets used to be called For more details, see Static Analysis. |
|
Run ALL enabled auto fixers on the repository. This runs the following sub-targets, which can also be run individually:
|
|
Generate the API documentation. For more details see API Documentation Tools. |
|
Check the API documentation. This runs the following sub-targets, which can also be run individually:
For more details see Checking API Documentation. |
|
Build one or more deployable packages using CPACK. Requires
Not available if |
|
Run make # Build in coverage info into project
make all-tests # Build in coverage info into tests
make precoverage-info # Set baseline coverage info for ENTIRE project
make test # Populate coverage for executed parts of project
make coverage-report # Build ABSOLUTE coverage report for all files
An absolute code coverage report uses the baseline info and the # lines/functions executed in all files. If there are files which have no functions executed, then they WILL be included in the results. This may or may not be desirable; if it is not, then don’t call this target before running the project, and you’ll get a relative report instead. |
|
Run make # Build in coverage info into project
make all-tests # Build in coverage info into tests
make test # Populate coverage for executed parts of project
make coverage-report # Build RELATIVE report for files had some execution
Not that this is a relative code coverage report. That is, #
lines/functions executed out of the total # lines/functions in all files
which have at least one function executed. If there are files which have
no functions executed, then they will not be included in the results,
skewing reporting coverage. This may or may not be desirable. See
|