-
Notifications
You must be signed in to change notification settings - Fork 115
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
Reform tests according to Good Scientific Code practices #634
Labels
good first issue
Good for newcomers / easy to resolve
help wanted
Help from someone external is needed
simplification
Reduce the amount of code, make it more clear and more simple, reduce the amount of functionalities
tests
Comments
Datseris
added a commit
that referenced
this issue
Jul 31, 2022
Datseris
added a commit
that referenced
this issue
Jul 31, 2022
* New `@agent` macro and its docs (doesn't work yet) * fix incorrect argument order * rework docstrings of agent subtypes * move all agent definitions to their own space folder * remove unecessary old exports * update docstring with recommended ways * fix problems of definition within modules!!! * correct description of parametric types * add yet one more example with common dispatch * make all agents from NoSpaceAgent * re-write tutorial for `@agent` * update Schelling example to use `@agent` * use @agent in all examples * add tests * add changelog * Address all review comments * typo in changelog * minor improve in type checking * fix warn log tests * fix model creation tests, also adhere to #634 * add a couple more tests to `@agent` * add update messages
@Datseris I'd be interested to know what was discussed at the workshop if you have more information on that |
Here's the workshop: https://github.com/JuliaDynamics/GoodScientificCodeWorkshop |
here's a checklist with what properties good tests should have: JuliaDynamics/ChaosTools.jl#264 |
Oh god, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Good for newcomers / easy to resolve
help wanted
Help from someone external is needed
simplification
Reduce the amount of code, make it more clear and more simple, reduce the amount of functionalities
tests
I am preparing a huge workshop that I'll give next month on Good Scientific Code practices. (will upload to youtube and share here)
Unfortunately, our tests miss some good practices regarding a good unit test suite. Specifically:
runtests.jl
and the lack ofusing
statements in the individual files.graph_tests.jl
? I'd expect all ofGraphSpace
features, but that's nowhere near the case. Each space should have its own test file.continuousSpace_tests.jl
. 8 spaces are initialized, but as far as the subsequent tests are concerned, you only need 3. In a similar vein, the test aren't also memory minimal. For the majority of the tests, we use agents that have extra fields likeweight
, even though we don't actually use these fields anywhere. E.g., see "mutable graphs" tests, which never uses the weight field yet assigns it anyways.runtests.jl
, the test files should be included likeruntests.jl
file should beTest, SafeTestsets
.The text was updated successfully, but these errors were encountered: