Skip to content

Use SciMLTesting v1.1.0 run_tests harness#1487

Draft
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:sciml-testing-rollout
Draft

Use SciMLTesting v1.1.0 run_tests harness#1487
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:sciml-testing-rollout

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Contributor

Replaces the hand-written GROUP if-ladder in test/runtests.jl with a single declarative run_tests call from SciMLTesting v1.1.0.

What changed

  • The six functional groups (Modeling, Simulation, Hybrid, Misc, Spatial, Extensions) are passed as groups entries.
  • A curated all = ["Modeling", "Simulation", "Hybrid", "Misc", "Spatial", "Extensions"] reproduces the original All membership exactly: bare/All runs all six groups in the original order. This repo has no QA group.
  • The Extensions group keeps its isolated test/extensions environment via the env kwarg, which performs the same Pkg.activate / Pkg.develop(repo root) / Pkg.instantiate that the old activate_extensions_env() helper did.

Behavior equivalence

This is a behavior-equivalent refactor — no test assertions or logic changed, and the set of testsets run under each GROUP value (including bare/All) is identical before and after. Verified with a dispatch dry-run:

GROUP groups run
All Modeling, Simulation, Hybrid, Misc, Spatial, Extensions
Modeling / Simulation / Hybrid / Misc / Spatial / Extensions the named group only

Project.toml

  • Added SciMLTesting (09d9d899-5365-40a9-917a-5f67fddea283) to [extras], [compat] SciMLTesting = "1", and the test target.
  • Dropped Pkg from the test deps — only the old harness used it; run_tests bundles Pkg.

Ignore until reviewed by @ChrisRackauckas.

Replace the hand-written `GROUP` if-ladder in `test/runtests.jl` with a
single declarative `run_tests` call from SciMLTesting v1.1.0.

The six functional groups (Modeling, Simulation, Hybrid, Misc, Spatial,
Extensions) are passed as `groups` entries, and a curated `all = [...]`
reproduces the original `All` membership exactly: All runs all six groups,
in the original order. There is no QA group in this repo. The Extensions
group keeps its isolated `test/extensions` env via the `env` kwarg (which
performs the same Pkg.activate / develop(root) / instantiate that the old
`activate_extensions_env` did).

This is a behavior-equivalent refactor: the set of testsets run under each
GROUP value (including bare/All) is identical before and after, verified
with a dispatch dry-run.

Project.toml: add SciMLTesting (09d9d899-5365-40a9-917a-5f67fddea283) to
[extras], [compat] SciMLTesting = "1", and the test target; drop Pkg from
the test deps (only the old harness used it; run_tests bundles Pkg).

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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