Skip to content

Instantly share code, notes, and snippets.

@thejohnfreeman
Created June 13, 2019 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thejohnfreeman/6c0fe6cd742c8258dfef7b49b6eb9bf1 to your computer and use it in GitHub Desktop.
Save thejohnfreeman/6c0fe6cd742c8258dfef7b49b6eb9bf1 to your computer and use it in GitHub Desktop.
get_property(tests DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY TESTS)
foreach(test ${tests})
set_tests_properties(${test} PROPERTIES FIXTURES_REQUIRED cleanup_fixture)
endforeach()
add_test(cleanup ...)
set_tests_properties(cleanup PROPERTIES FIXTURES_CLEANUP cleanup_fixture)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment