Skip to content

Commit

Permalink
Add an extended tag for time-intensive unit tests (#109)
Browse files Browse the repository at this point in the history
* Mark Box-4D and Tetrahedron as extended non-CI tests

* Formatting

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Move jacobian error test into different set

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
mikeingold and github-actions[bot] authored Oct 15, 2024
1 parent 87ac32d commit aa0270a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions test/combinations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ end
@test_throws "not supported" lineintegral(f, box)
@test surfaceintegral(f, box) sol
@test_throws "not supported" volumeintegral(f, box)

# Test jacobian with wrong number of parametric coordinates
@test_throws ArgumentError jacobian(box, zeros(3))
end

@testitem "Meshes.Box 3D" setup=[Setup] begin
Expand Down Expand Up @@ -168,7 +171,7 @@ end
@test volumeintegral(f, box) sol
end

@testitem "Meshes.Box 4D" setup=[Setup] begin
@testitem "Meshes.Box 4D" tags=[:extended] setup=[Setup] begin
a = π
box = Box(Point(0, 0, 0, 0), Point(a, a, a, a))

Expand All @@ -195,9 +198,6 @@ end
@test_throws "not supported" lineintegral(f, box)
@test_throws "not supported" surfaceintegral(f, box)
@test_throws "not supported" volumeintegral(f, box)

# Test jacobian with wrong number of parametric coordinates
@test_throws ArgumentError jacobian(box, zeros(2))
end

@testitem "Meshes.Circle" setup=[Setup] begin
Expand Down Expand Up @@ -804,7 +804,7 @@ end
@test_throws "not supported" volumeintegral(f, sphere)
end

@testitem "Meshes.Tetrahedron" setup=[Setup] begin
@testitem "Meshes.Tetrahedron" tags=[:extended] setup=[Setup] begin
pt_n = Point(0, 1, 0)
pt_w = Point(-1, 0, 0)
pt_e = Point(1, 0, 0)
Expand Down
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using TestItemRunner
using TestItems

@run_package_tests verbose = true
# For CI, run all tests not marked with the :extended tag
@run_package_tests filter=ti -> !(:extended in ti.tags) verbose=true

@testsnippet Setup begin
using Meshes
Expand Down

0 comments on commit aa0270a

Please sign in to comment.