Skip to content

Conversation

@ednolan
Copy link
Member

@ednolan ednolan commented Nov 13, 2024

This commit eliminates our use of BUILD_TESTING and adds a project-specific UTF_VIEW_BUILD_TESTING CMake option. It avoids including CTest and relies on calls to enable_testing(), which is what Beman repositories do to ensure sufficient granularity.

@coveralls
Copy link

coveralls commented Nov 13, 2024

Pull Request Test Coverage Report for Build 11826402277

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 11826006894: 0.0%
Covered Lines: 468
Relevant Lines: 468

💛 - Coveralls

Copy link
Member

@camio camio left a comment

Choose a reason for hiding this comment

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

Minor suggestion, otherwise LGTM

CMakeLists.txt Outdated
Comment on lines 23 to 25
if (UTF_VIEW_BUILD_TESTING)
enable_testing()
endif()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (UTF_VIEW_BUILD_TESTING)
enable_testing()
endif()

Copy link
Member Author

Choose a reason for hiding this comment

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

Done


if(BUILD_TESTING)
if(UTF_VIEW_BUILD_TESTING)
add_subdirectory(tests/utf_view)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
add_subdirectory(tests/utf_view)
enable_testing()
add_subdirectory(tests/utf_view)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

This commit eliminates our use of BUILD_TESTING and adds a
project-specific UTF_VIEW_BUILD_TESTING CMake option. It avoids
including CTest and relies on calls to enable_testing(), which is what
Beman repositories do to ensure sufficient granularity.
@ednolan ednolan merged commit 484d1ea into main Nov 13, 2024
3 checks passed
@ednolan ednolan deleted the test_build_option2 branch March 15, 2025 22:39
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.

4 participants