You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cpp-test.yml builds tests but never runs them (no ctest), so failing tests pass CI #7
cpp-test.yml (at 06a7067) configures and builds the tests (cmake --build .) but never runs them. A failing assertion therefore still produces a green "Test cpp" run. The callers make it worse: linksplatform/Interfaces, for example, triggers it with pull_request: types: [edited], so commits pushed to a PR do not start it at all. Only edits to the PR title or body do.
Evidence
linksplatform/Interfaces run 36213155523 logs [100%] Built target Platform.Interfaces.Tests, then the job ends. No ctest command runs and the test binary is never executed.
It also uses the default pull_request activity types.
Suggested fix
Add ctest --test-dir <build> --output-on-failure --no-tests=error after the build. --no-tests=error turns "no tests registered" into a failure as well. Projects must call enable_testing() and gtest_discover_tests().
Remove types: [edited] from the callers' templates.
Activity