From aa0270a2429d80c9e584403a5404049ad9707ec8 Mon Sep 17 00:00:00 2001 From: Michael Ingold Date: Tue, 15 Oct 2024 05:59:31 -0400 Subject: [PATCH] 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> --- test/combinations.jl | 10 +++++----- test/runtests.jl | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/combinations.jl b/test/combinations.jl index 670f3a15..367e67e2 100644 --- a/test/combinations.jl +++ b/test/combinations.jl @@ -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 @@ -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)) @@ -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 @@ -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) diff --git a/test/runtests.jl b/test/runtests.jl index 9689f0b0..1ce37c5b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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