JuliaDynamics / ChaosTools.jl

Tools for the exploration of chaos and nonlinear dynamics
https://juliadynamics.github.io/DynamicalSystemsDocs.jl/chaostools/stable/
MIT License
187 stars 35 forks source link

Improve the tests, like, a lot. #264

Open Datseris opened 2 years ago

Datseris commented 2 years ago

One of the things the Good Scientific Code Workshop teaches is writing good unit tests. I have to admit, ChaosTools.jl suffers a lot from "bad tests", partly because it is the oldest thing in the organization, partly because it is a package really hard to test due to the vast amount of content and the fact that all content is atomic. Nevertheless, these aren't real excuses, and little by little we should try to improve the test suite. I am pasting here the slide with "good advice on writing tests":

One doesn't have to worry about re-writing all tests. In fact, a PR "correcting" a single test file is already very much welcomed!