changeset 338:2b0c9b30ea3b refactor/combine_to_one_package

Add test sets for each submodule to make the test output nicer
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 25 Sep 2020 13:48:23 +0200
parents d93099b1882e
children 1cafeb286c00
files test/runtests.jl test/testDiffOps.jl test/testGrids.jl test/testLazyTensors.jl test/testRegionInidices.jl test/testSbpOperators.jl
diffstat 6 files changed, 20 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/runtests.jl	Fri Sep 25 13:35:26 2020 +0200
+++ b/test/runtests.jl	Fri Sep 25 13:48:23 2020 +0200
@@ -1,6 +1,6 @@
 using Test
 using TestSetExtensions
 
-@testset "All tests" begin
+@testset "All" begin
     @includetests ARGS
 end
--- a/test/testDiffOps.jl	Fri Sep 25 13:35:26 2020 +0200
+++ b/test/testDiffOps.jl	Fri Sep 25 13:48:23 2020 +0200
@@ -5,6 +5,8 @@
 using Sbplib.RegionIndices
 using Sbplib.LazyTensors
 
+@testset "DiffOps" begin
+
 @testset "Laplace2D" begin
     op = readOperator(sbp_operators_path()*"d2_4th.txt",sbp_operators_path()*"h_4th.txt")
     Lx = 3.5
@@ -267,3 +269,5 @@
     @test collect(H_s'*v_s) == collect(H_s'*v_s)
     @test collect(H_n'*v_n) == collect(H_n'*v_n)
 end
+
+end
\ No newline at end of file
--- a/test/testGrids.jl	Fri Sep 25 13:35:26 2020 +0200
+++ b/test/testGrids.jl	Fri Sep 25 13:48:23 2020 +0200
@@ -1,8 +1,12 @@
 using Sbplib.Grids
 using Test
 
+@testset "Grids" begin
+
 @testset "EquidistantGrid" begin
     @test EquidistantGrid(4,0,1) isa EquidistantGrid
     @test dimension(EquidistantGrid(4,0,1)) == 1
     @test EquidistantGrid(4,0,1) == EquidistantGrid((4,),(0,),(1,))
 end
+
+end
--- a/test/testLazyTensors.jl	Fri Sep 25 13:35:26 2020 +0200
+++ b/test/testLazyTensors.jl	Fri Sep 25 13:48:23 2020 +0200
@@ -2,6 +2,8 @@
 using Sbplib.LazyTensors
 using Sbplib.RegionIndices
 
+@testset "LazyTensors" begin
+
 @testset "Generic Mapping methods" begin
     struct DummyMapping{T,R,D} <: TensorMapping{T,R,D} end
     LazyTensors.apply(m::DummyMapping{T,R,D}, v, i::NTuple{R,Index{<:Region}}) where {T,R,D} = :apply
@@ -189,3 +191,5 @@
     # Test that size of arrays is asserted when not specified inbounds
     @test_throws DimensionMismatch v1 + v2
 end
+
+end
\ No newline at end of file
--- a/test/testRegionInidices.jl	Fri Sep 25 13:35:26 2020 +0200
+++ b/test/testRegionInidices.jl	Fri Sep 25 13:48:23 2020 +0200
@@ -1,4 +1,6 @@
 using Sbplib.RegionIndices
 using Test
 
-@test_broken false
+@testset "RegionIndices" begin
+	@test_broken false
+end
--- a/test/testSbpOperators.jl	Fri Sep 25 13:35:26 2020 +0200
+++ b/test/testSbpOperators.jl	Fri Sep 25 13:48:23 2020 +0200
@@ -4,6 +4,8 @@
 using Sbplib.RegionIndices
 using Sbplib.LazyTensors
 
+@testset "SbpOperators" begin
+
 # @testset "apply_quadrature" begin
 #     op = readOperator(sbp_operators_path()*"d2_4th.txt",sbp_operators_path()*"h_4th.txt")
 #     h = 0.5
@@ -380,3 +382,5 @@
 #     @test collect(H_s'*v_s) == collect(H_s'*v_s)
 #     @test collect(H_n'*v_n) == collect(H_n'*v_n)
 # end
+
+end