Skip to content

Commit fb5f7ad

Browse files
authored
Fix docs link to package tests docs (#52384)
Since #52102 these links to the Pkg.jl docs are dead. This should point them to the new location in the Julia docs. There is a reference in CONTRIBUTING.md that should change as well, but maybe not until a Julia version with these changes is released: https://github.com/JuliaLang/julia/blob/3e4b38684e38a015446253f5752ee9cf840f50cc/CONTRIBUTING.md?plain=1#L17
1 parent 3e4b386 commit fb5f7ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/src/tutorials/creating-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ in expression starting at /home/kc/HelloWorld/deps/build.jl:1
246246
A build step should generally not create or modify any files in the package directory. If you need to store some files
247247
from the build step, use the [Scratch.jl](https://github.com/JuliaPackaging/Scratch.jl) package.
248248

249-
## Adding tests to the package
249+
## [Adding tests to the package](@id adding-tests-to-packages)
250250

251251
When a package is tested the file `test/runtests.jl` is executed:
252252

stdlib/Test/docs/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The `Test` module provides simple *unit testing* functionality. Unit testing is
2020
see if your code is correct by checking that the results are what you expect. It can be helpful
2121
to ensure your code still works after you make changes, and can be used when developing as a way
2222
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).
2424

2525
Simple unit testing can be performed with the `@test` and `@test_throws` macros:
2626

@@ -420,7 +420,7 @@ end
420420
We will need to create those two included files, `math_tests.jl` and `greeting_tests.jl`, and add some tests to them.
421421

422422
> **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).
424424
425425
#### Writing Tests for `math_tests.jl`
426426

0 commit comments

Comments
 (0)