Skip to content

Add support for test fixtures

Craig Scott requested to merge craig.scott/cmake:test-fixtures into master

Three new test properties are added:

  • FIXTURES_SETUP
  • FIXTURES_CLEANUP
  • FIXTURES_REQUIRED

If any test requires a particular fixture, that fixture's setup and cleanup tests will be added to the execution set automatically if not already included. Automatic dependency relationships are also created to ensure that setup tests run before and cleanup tests run after any tests requiring that fixture. If any setup test for a fixture fails, any regular test requiring that fixture will not be run (cleanup tests will still be run).

See also discussion on the mailing list:

Merge request reports