Skip to content

Commit

Permalink
Add docs for GAP.Packages.test
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Nov 22, 2024
1 parent 57dadc1 commit 5e51614
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI-distro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ jobs:
- name: "Build GAP package"
run: julia --color=yes --project=. -e 'using GAP; GAP.Packages.build("${{ matrix.gap-package }}")'
- name: "Run GAP package tests"
run: julia --color=yes --project=. -e 'using GAP; GAP.Packages.test("${{ matrix.gap-package }}")'
run: julia --color=yes --project=. -e 'using GAP, Test; GAP.Packages.test("${{ matrix.gap-package }}")'
1 change: 1 addition & 0 deletions docs/src/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ GAP.Packages.install
GAP.Packages.update
GAP.Packages.remove
GAP.Packages.build
GAP.Packages.test
GAP.Packages.locate_package
```

11 changes: 11 additions & 0 deletions src/packages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,17 @@ function build(name::String; quiet::Bool = false,
return res
end

"""
test(name::String)
Test the GAP package with name `name`.
The function uses [the function `TestPackage`](GAP_ref(ref:TestPackage)).
Use-sites of this function should verify that the `Test` package is loaded
before calling this function, as this function might be moved
to a package extension that depends on the `Test` package in the future.
"""
function test(name::String)
global disable_error_handler

Expand Down

0 comments on commit 5e51614

Please sign in to comment.