Repository navigation
Make TESTS public-only and document inline-test dependencies - #66
Conversation
Remove private static-test support, preserve separate in-source testing, and document public-test migration and self-contained doctest headers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
sean-parent
left a comment
There was a problem hiding this comment.
Talos review: clean
No issues found. Reviewed SHA: b13ce42c7a09156295db58f8ed66a6b239186d41, full branch diff against main (merge base a98644ae30b271d7e3e9216b92fb5d76c3e34db1).
| Files | Reviewers | Candidates → validated → accepted | Posted | Overflow | Tests |
|---|---|---|---|---|---|
| 8 of 8 | 6 personas plus challenge | 0 → 0 → 0 | 0 inline findings | 0 | 14 repository-native regression scripts passed locally on macOS, plus diff/template checks |
Security, correctness, standards, architecture, operations, and documentation personas all completed; the challenge reviewer confirmed the empty validated batch. No latent risks, duplicate findings, or recurrences were reported. No reviewer failed or was substituted with a hosted bot. Base-commit CLAUDE.md and .github/copilot-instructions.md were loaded; no instruction diagnostics or skipped rule files.
Verification limitations: Windows DLL/PowerShell execution and Linux CI variants are verified separately by the PR's CI; they were not run locally on macOS. The existing dependency harness intentionally skips one fatal-error case. The target-type harness intentionally has no CTest cases in its disabled/nested configurations. No CMake formatter/linter is configured. The PR description records each executed validation command.
Persona routing: static roster (DCAP routing off; rerun with --dcap to enable).
Org knowledge: off (rerun with --knowledge).
Scout
Used: risk MEDIUM, evidence LOW, status COMPLETE (scout 0.9.135, <1s).
Cross-file leads given to reviewers: 0 changed symbol(s) with uses outside the diff, 0 new value(s) not handled everywhere, 5 possibly unused symbol(s).
Scout rated its evidence LOW for this change; reviewers used it only as leads.
Tests to run (Scout: 6 Must Run test(s), in these files):
tests/setup/fixtures/source_testing/src/component.cpptests/setup/fixtures/source_testing/tests/existing.cpptests/setup/fixtures/source_testing/tests/rejected_fail.cpptests/setup/fixtures/mock_doctest.cmake
These fixture paths are exercised through the source-testing and target-type harnesses in the completed local validation plan.
Summary
TESTSnow link the production library with normal public usage requirements. Remove private static-test targets, private include paths, and testing-enabled configuration; retain the independent in-source runner. No compatibility option is retained.<ostream>includes for MSVC.Closes #64.
Closes #65.
Test plan
Fresh local validation on macOS with CMake 4.5.1, Ninja 1.13.2, and AppleClang 21:
cmake -P tests/setup/test_source_testing.cmake: static/shared public tests, independent in-source execution, compile-fail, header-only/disabled/nested cases, C++17/20/23.cmake -P tests/setup/test_target_type.cmake: target types, dialect, and thread behavior.cmake -P tests/setup/test_header_checks.cmake: independent public headers.cmake -P tests/setup/test_timeouts.cmake: generated-test timeout and rejection cases.cmake -P tests/setup/test_runtime_dlls.cmake: runtime deployment fixture on this host.cmake -P tests/install/CMakeLists.txt: dependency mapping/provider harness; zero failures, one existing intentionally skipped fatal-error case.cmake -P tests/install/test_provider_merge.cmake: provider merging.cmake -P tests/install/test_nested_install.cmake: existing static/shared package round trips.cmake -P tests/install/test_package_ci.cmake: generated packaging checks.cmake -P tests/setup/test_version_override.cmake: version overrides.cmake -P tests/setup/test_install_dirs.cmake: install-directory options.cmake -P tests/setup/test_setup_version_resolution.cmake: scaffolder revision selection.cmake -P tests/docs/test_docs.cmake: documentation configuration/rendering.CXX=clang++ cmake -DCPP_LIBRARY_TEST_CLANGD=ON -DCPP_LIBRARY_TEST_COMPILER_ID=AppleClang -P tests/setup/test_clangd.cmake: configure-only header commands and fresh clangd navigation.git diff --checkand CI template-presence checks.The target-type script intentionally reports no tests for its testing-disabled/nested cases. No formatter/linter is configured for these CMake changes; consumer clang-tidy presets do not build this toolkit.
Generated with GitHub Copilot CLI