ut icon indicating copy to clipboard operation
ut copied to clipboard

Tests are always skipped when ut is #included into a module

Open abbator opened this issue 1 year ago • 0 comments

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

  1. Make a C++20 module
  2. #include ut.hpp in the global module fragment
  3. Create a test using "foo"_test
  4. Run the program. The tests will be skipped.

Specifications

  • Version: commit 3cfd993
  • Platform: Windows 11

abbator avatar Mar 18 '24 16:03 abbator