We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A test case can end up in the wrong test suite because of a function being marked as inline instead of static - consider the following code:
inline
static
// a.cpp #include <doctest.h> TEST_SUITE("some test suite") { TEST_CASE("aaa") { CHECK(0); } }
// b.cpp #include <doctest.h> TEST_SUITE("test suite in b.cpp") { TEST_CASE("bbb") { CHECK(0); } }
// main.cpp #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include <doctest.h>
When these 3 files are built and linked there will be 2 test cases registered, but both will be in the same test suite.
Caught this while reviewing my slides for CppCon 2017!!!
The text was updated successfully, but these errors were encountered:
fixed issue #91
3763d5e
darn - smart commits dont work!!!
Sorry, something went wrong.
No branches or pull requests
A test case can end up in the wrong test suite because of a function being marked as
inline
instead ofstatic
- consider the following code:When these 3 files are built and linked there will be 2 test cases registered, but both will be in the same test suite.
Caught this while reviewing my slides for CppCon 2017!!!
The text was updated successfully, but these errors were encountered: