Skip to content

Generate placeholder tests alongside models#44

Draft
kwabenantim wants to merge 1 commit into
developfrom
37-placeholder-tests
Draft

Generate placeholder tests alongside models#44
kwabenantim wants to merge 1 commit into
developfrom
37-placeholder-tests

Conversation

@kwabenantim

Copy link
Copy Markdown
Member

Supports #37

Emit a skeleton Test<Model>Sbml.hpp that the user can build up.

Add --tests/--no-tests and --test-output-dir to the generate command.

Emit a skeleton CxxTest file (Test<Model>Sbml.hpp) per model by default: an
OdeSystem suite always, plus a separate SRN/CellCycle suite where applicable,
each a TS_ASSERT_THROWS_NOTHING construction the user can build up.

Add --tests/--no-tests and --test-output-dir to the generate command; test
files default to the model output dir. Register ModelType as a Jinja global so
the template branches on it directly. Disable the base-class placeholder in the
test-suite generator to avoid colliding with its semantic test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kwabenantim kwabenantim linked an issue Jul 16, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.95238% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.95%. Comparing base (14721b5) to head (6611f48).

Files with missing lines Patch % Lines
chaste_sbml/__main__.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #44      +/-   ##
===========================================
- Coverage    92.96%   92.95%   -0.02%     
===========================================
  Files           54       54              
  Lines         6399     6416      +17     
===========================================
+ Hits          5949     5964      +15     
- Misses         450      452       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Generate placeholder tests

1 participant