ut
ut copied to clipboard
Tests are always skipped when ut is #included into a module
Expected Behavior
Tests should run regardless of whether ut is brought in using import ut; or #include "ut.hpp". Note that because building ut as a module doesn't work on windows and other dependencies #include standard library headers, building ut as a module is currently infeasible even in a project using modules (but those are separate issues).
Actual Behavior
If ut is brought into a C++20 module using #include instead of import ut; tests will always be skipped.
Steps to Reproduce the Problem
- Make a C++20 module
#includeut.hpp in the global module fragment- Create a test using "foo"_test
- Run the program. The tests will be skipped.
Specifications
- Version: commit 3cfd993
- Platform: Windows 11