Skip to content

docs: add missing v3 include to test-cases-and-sections.md#3112

Open
DrishtiTripathi2230 wants to merge 1 commit into
catchorg:develfrom
DrishtiTripathi2230:fix-test-cases-doc
Open

docs: add missing v3 include to test-cases-and-sections.md#3112
DrishtiTripathi2230 wants to merge 1 commit into
catchorg:develfrom
DrishtiTripathi2230:fix-test-cases-doc

Conversation

@DrishtiTripathi2230

Copy link
Copy Markdown

Description

Add missing #include statement to test-cases-and-sections.md for Catch2 v3:

  • catch_test_macros.hpp for TEST_CASE, SECTION, SCENARIO and related macros

GitHub Issues

Part of #2829

@codecov

codecov Bot commented May 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.30%. Comparing base (69e0473) to head (3e31290).

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3112      +/-   ##
==========================================
+ Coverage   91.26%   91.30%   +0.03%     
==========================================
  Files         204      204              
  Lines        8905     8905              
==========================================
+ Hits         8127     8130       +3     
+ Misses        778      775       -3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rajpratham1 rajpratham1 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice documentation improvement. Adding the required #include <catch2/catch_test_macros.hpp> makes the examples self-contained for Catch2 v3 and prevents users from running into compilation issues when copying the snippets. Small but valuable fix. LGTM.

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.

2 participants