Skip to content

Commit aa0270a

Browse files
Add an extended tag for time-intensive unit tests (#109)
* 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>
1 parent 87ac32d commit aa0270a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

test/combinations.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ end
138138
@test_throws "not supported" lineintegral(f, box)
139139
@test surfaceintegral(f, box) sol
140140
@test_throws "not supported" volumeintegral(f, box)
141+
142+
# Test jacobian with wrong number of parametric coordinates
143+
@test_throws ArgumentError jacobian(box, zeros(3))
141144
end
142145

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

171-
@testitem "Meshes.Box 4D" setup=[Setup] begin
174+
@testitem "Meshes.Box 4D" tags=[:extended] setup=[Setup] begin
172175
a = π
173176
box = Box(Point(0, 0, 0, 0), Point(a, a, a, a))
174177

@@ -195,9 +198,6 @@ end
195198
@test_throws "not supported" lineintegral(f, box)
196199
@test_throws "not supported" surfaceintegral(f, box)
197200
@test_throws "not supported" volumeintegral(f, box)
198-
199-
# Test jacobian with wrong number of parametric coordinates
200-
@test_throws ArgumentError jacobian(box, zeros(2))
201201
end
202202

203203
@testitem "Meshes.Circle" setup=[Setup] begin
@@ -804,7 +804,7 @@ end
804804
@test_throws "not supported" volumeintegral(f, sphere)
805805
end
806806

807-
@testitem "Meshes.Tetrahedron" setup=[Setup] begin
807+
@testitem "Meshes.Tetrahedron" tags=[:extended] setup=[Setup] begin
808808
pt_n = Point(0, 1, 0)
809809
pt_w = Point(-1, 0, 0)
810810
pt_e = Point(1, 0, 0)

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
using TestItemRunner
22
using TestItems
33

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

67
@testsnippet Setup begin
78
using Meshes

0 commit comments

Comments
 (0)