Skip to content

Commit

Permalink
add unit label to the unit tests
Browse files Browse the repository at this point in the history
this allows running all the unit tests with: ctest -L unit
  • Loading branch information
vigsterkr committed May 22, 2018
1 parent 29b9a62 commit 9c63c54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/discover_gtest_tests.cpp
Expand Up @@ -72,6 +72,10 @@ int main (int argc, char **argv)
string endParen (".*\")");

testfilecmake << addTest << testCases[i] << testExec << gTestFilter << testCases[i] << endParen << endl;

string setTestsProp ("SET_TESTS_PROPERTIES (unit-");
string properties (" PROPERTIES LABELS \"unit\")");
testfilecmake << setTestsProp << testCases[i] << properties << endl;
}
}

Expand Down

0 comments on commit 9c63c54

Please sign in to comment.