File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ in expression starting at /home/kc/HelloWorld/deps/build.jl:1
246
246
A build step should generally not create or modify any files in the package directory. If you need to store some files
247
247
from the build step, use the [ Scratch.jl] ( https://github.com/JuliaPackaging/Scratch.jl ) package.
248
248
249
- ## Adding tests to the package
249
+ ## [ Adding tests to the package] ( @ id adding-tests-to-packages)
250
250
251
251
When a package is tested the file ` test/runtests.jl ` is executed:
252
252
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ The `Test` module provides simple *unit testing* functionality. Unit testing is
20
20
see if your code is correct by checking that the results are what you expect. It can be helpful
21
21
to ensure your code still works after you make changes, and can be used when developing as a way
22
22
of specifying the behaviors your code should have when complete. You may also want to look at the
23
- documentation for [ adding tests to your Julia Package] ( https://pkgdocs.julialang.org/dev/creating-packages/#Adding- tests-to-the-package ) .
23
+ documentation for [ adding tests to your Julia Package] (@ ref adding- tests-to-packages ).
24
24
25
25
Simple unit testing can be performed with the ` @test ` and ` @test_throws ` macros:
26
26
420
420
We will need to create those two included files, ` math_tests.jl ` and ` greeting_tests.jl ` , and add some tests to them.
421
421
422
422
> ** Note:** Notice how we did not have to specify add ` Example ` into the ` test ` environment's ` Project.toml ` .
423
- > This is a benefit of Julia's testing system that you could [ read about more here] ( https://pkgdocs.julialang.org/dev/creating- packages/ ) .
423
+ > This is a benefit of Julia's testing system that you could [ read about more here] (@ ref adding-tests-to- packages).
424
424
425
425
#### Writing Tests for ` math_tests.jl `
426
426
You can’t perform that action at this time.
0 commit comments