You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written a CMake module along with a helper cmake file with function munit_discover_tests that could be used to automatically discovering test case from any CMake test target that uses Munit for unit testing, just like gtest_dicover_tests in GoogleTest CMake module in this gist.
It uses a post-build command to run <Munit test executable> --list to get list of all tests in the executable and then writes add_test command on each of them in an include file that is included by CTest whenever CTest runs.
munit_discover_tests has CMake parameters for all command-line flags in Munit except --help & --color auto|always|never, as well as an EXTRA_ARGS parameter for accomodating future changes in Munit CLI.
License
CC0
The text was updated successfully, but these errors were encountered:
Description
I have written a CMake module along with a helper cmake file with function
munit_discover_tests
that could be used to automatically discovering test case from any CMake test target that uses Munit for unit testing, just likegtest_dicover_tests
in GoogleTest CMake module in this gist.It uses a post-build command to run
<Munit test executable> --list
to get list of all tests in the executable and then writesadd_test
command on each of them in an include file that is included by CTest whenever CTest runs.munit_discover_tests
has CMake parameters for all command-line flags in Munit except--help
&--color auto|always|never
, as well as anEXTRA_ARGS
parameter for accomodating future changes in Munit CLI.License
CC0
The text was updated successfully, but these errors were encountered: