Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: make initializaton tests runnable from OrdinaryDiffEq #3232

Merged

Conversation

AayushSabharwal
Copy link
Member

OrdinaryDiffEq otherwise does not test OverrideInit

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

test/runtests.jl Outdated
@@ -33,7 +33,6 @@ end
@safetestset "Dynamic Quantities Test" include("dq_units.jl")
@safetestset "Unitful Quantities Test" include("units.jl")
@safetestset "Mass Matrix Test" include("mass_matrix.jl")
@safetestset "InitializationSystem Test" include("initializationsystem.jl")
@safetestset "Guess Propagation" include("guess_propagation.jl")
@safetestset "Hierarchical Initialization Equations" include("hierarchical_initialization_eqs.jl")
Copy link
Member

Choose a reason for hiding this comment

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

also move this?

Copy link
Member

Choose a reason for hiding this comment

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

Also initial Values test?

Copy link
Member

Choose a reason for hiding this comment

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

And guess propagation?

Copy link
Member Author

Choose a reason for hiding this comment

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

All three of those are purely MTK functionalities, though? Why would OrdinaryDiffEq need to test them?

Copy link
Member

Choose a reason for hiding this comment

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

They are initialization tests

test/runtests.jl Outdated
@safetestset "Equation Type Accessors Test" include("equation_type_accessors.jl")
@safetestset "Equations with complex values" include("complex.jl")
end
end

if GROUP == "All" || GROUP == "InterfaceI" || GROUP == "Initialization"
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 GROUP == "All" || GROUP == "InterfaceI" || GROUP == "Initialization"
if GROUP == "All" || GROUP == "Initialization"

And just make a new test group in the Github CI. We keep putting everything into InterfaceI so fully splitting is good!

@AayushSabharwal AayushSabharwal force-pushed the as/initialization-testset branch from 861e7ae to d73342d Compare November 27, 2024 05:59
@AayushSabharwal AayushSabharwal merged commit f3caa10 into SciML:master Nov 27, 2024
38 of 40 checks passed
@AayushSabharwal AayushSabharwal deleted the as/initialization-testset branch November 27, 2024 07:41
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