I am searching some examples to organize my code to have unit testing (using Base.Test
)
just putting code inside the module with @testset
isn't ideal, as the tests are run when importing/using the module
put them in test/runtests.jl
this file is executed when you do ]test
in that project
see also https://pkgdocs.julialang.org/v1/creating-packages/#Adding-tests-to-the-package
thanks, it was what I am searching !
I missed the ]test
part
Sebastien Marie (semarie) has marked this topic as resolved.
For a nice complement, see also https://modernjuliaworkflows.github.io/sharing/#testing
Last updated: Nov 06 2024 at 04:40 UTC