Skip to content

[#82] wire H5CPP_BUILD_TESTS into CI; remove duplicate option#106

Merged
steven-varga merged 2 commits into
stagingfrom
82-build-review-and-modernize-cmake-for-c++17-and-package-exports-1
May 8, 2026
Merged

[#82] wire H5CPP_BUILD_TESTS into CI; remove duplicate option#106
steven-varga merged 2 commits into
stagingfrom
82-build-review-and-modernize-cmake-for-c++17-and-package-exports-1

Conversation

@steven-varga
Copy link
Copy Markdown
Collaborator

Closes #82

Summary

  • CI was silently skipping all tests: The Configure step lacked -DH5CPP_BUILD_TESTS=ON, so cmake --build produced no test binaries and ctest reported "No tests were found!!!" on every run — giving false green badges.
  • Duplicate option() declaration: option(H5CPP_BUILD_TESTS "Build tests" OFF) appeared twice in CMakeLists.txt (line 15 and ~line 74). The second declaration is a CMake no-op but is misleading; removed.

Test plan

  • CI runs on this PR and the Test stage reports real results (not "No tests found")
  • Local cmake -DH5CPP_BUILD_TESTS=ON + ctest passes 5/5

🤖 Generated with Claude Code

steven-varga and others added 2 commits May 7, 2026 21:06
release: promote staging docs and gather helpers
- Add -DH5CPP_BUILD_TESTS=ON to the CI configure step so the Test stage
  actually builds and runs tests (previously ctest found nothing to run)
- Remove duplicate option(H5CPP_BUILD_TESTS ...) declaration that appeared
  twice in CMakeLists.txt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@steven-varga steven-varga linked an issue May 8, 2026 that may be closed by this pull request
@steven-varga steven-varga changed the base branch from release to staging May 8, 2026 04:11
@steven-varga steven-varga merged commit 7703362 into staging May 8, 2026
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.

build, review and modernize cmake for C++17 and package exports

1 participant