Skip to content

test: demote old example to integration test fixture - #2173

Merged
jpnurmi merged 3 commits into
masterfrom
jpnurmi/test/integration-fixture
Oct 9, 2026
Merged

jpnurmi merged 3 commits into
masterfrom
jpnurmi/test/integration-fixture

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

A noisy but mostly mechanical follow-up to #2125. Now that we have new examples, we can demote the old complicated CLI-driven example, which no longer serves the purpose of an example, to a test fixture.

  • Move examples/example.c -> tests/fixtures/integration.c
  • Rename sentry_example -> sentry_test_integration (inspired by sentry_test_unit)
  • Rename sentry_example_appx -> sentry_test_appx

Move the command-driven example to `tests/fixtures/integration.c`.
Rename its targets to `sentry_test_integration` and
`sentry_test_integration_appx`, and update integration tests and docs.

Build the fixture under `SENTRY_BUILD_TESTS` independently of examples.
Share executable setup through the local `sentry_add_executable` helper.
@jpnurmi
jpnurmi requested a review from JoshuaMoelans October 7, 2026 09:45
@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.42%. Comparing base (56267f4) to head (4f2590e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2173   +/-   ##
=======================================
  Coverage   75.42%   75.42%           
=======================================
  Files         103      103           
  Lines       28089    28089           
  Branches     5150     5150           
=======================================
+ Hits        21185    21186    +1     
+ Misses       5555     5549    -6     
- Partials     1349     1354    +5     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpnurmi jpnurmi linked an issue Oct 7, 2026 that may be closed by this pull request

@JoshuaMoelans JoshuaMoelans left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice cleanup/refactor, thanks!

@jpnurmi
jpnurmi merged commit d51c04f into master Oct 9, 2026
71 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/test/integration-fixture branch October 9, 2026 14:43
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.

Easy-to-read examples

2 participants