orjangj / neotest-ctest

A neotest adapter for C/C++ using CTest as a test runner. Supports GoogleTest, Catch2 and doctest test frameworks.
MIT License
8 stars 4 forks source link

Catch2 tests not discovered when enclosed in namespace #7

Closed orjangj closed 5 months ago

orjangj commented 5 months ago

Minimal example

namespace example {

TEST_CASE( "First", "[first]" ) {
    REQUIRE( true );
}

TEST_CASE( "Second", "[second]" ) {
    REQUIRE( false );
}

}

Discovering tests without namespace is working