martinmoene / lest

A modern, C++11-native, single-file header-only, tiny framework for unit-tests, TDD and BDD (includes C++98 variant)
Boost Software License 1.0
390 stars 45 forks source link

Warn against combining auto test registration and modules with arrays of tests #25

Open martinmoene opened 8 years ago

martinmoene commented 8 years ago

So far found one opportunity to check:

This doesn't help though to warn against the following incompatible use which you likely encounter earlier:

// for auto test registration
#define CASE( name ) lest_CASE( specification, name );

// non-auto test registration:
static lest::test specification[] =
{
CASE(...) {}
}

See (end of) issue #23 "User-defined functions based on lest macros".