Skip to content

Make TESTS public-only and document inline-test dependencies - #66

Merged
sean-parent merged 1 commit into
mainfrom
fix/issues-60-64-65
Nov 21, 2026
Merged

sean-parent merged 1 commit into
mainfrom
fix/issues-60-64-65

Conversation

@sean-parent

Copy link
Copy Markdown
Member

Summary

  • Breaking change for v7.0.0: standalone TESTS now 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.
  • Extend the existing static/shared fixture to check production linkage, private-header/settings isolation, shared-library usage requirements, independent embedded execution, and compile-fail behavior.
  • Document migration and self-contained test-only headers, including guarded <ostream> includes for MSVC.
  • Evaluate Explore a cpp-library agent skill for client setup and review #60 in an issue comment; defer a packaged agent skill pending a version-aware pilot and discovery decision.

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 --check and CI template-presence checks.
  • CI: Linux unit/integration/docs and clangd matrix, Windows static/DLL execution and PowerShell scaffolding. Windows DLL behavior cannot be executed on macOS.

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

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 sean-parent left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.cpp
  • tests/setup/fixtures/source_testing/tests/existing.cpp
  • tests/setup/fixtures/source_testing/tests/rejected_fail.cpp
  • tests/setup/fixtures/mock_doctest.cmake

These fixture paths are exercised through the source-testing and target-type harnesses in the completed local validation plan.

@sean-parent
sean-parent merged commit 7ba5a04 into main Nov 21, 2026
7 checks passed
@sean-parent
sean-parent deleted the fix/issues-60-64-65 branch November 21, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Isolate public TESTS from private implementation test support Document self-contained headers for inline doctest tests on MSVC

1 participant