From 548eecb759fb1eeb3bb0f9ea42d635336fc08caf Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Tue, 7 Jul 2015 21:15:49 +0300 Subject: [PATCH] updated how to investigate all test files from test folder --- test/runtests.jl | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 83c097f..c1c801e 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,9 @@ # This file is a part of JuliaFEM. # License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md +# should this stuff be in package? see FactCheck docs. + + using JuliaFEM using FactCheck using Logging @@ -75,22 +78,14 @@ facts("Looking the [src,test] folders *.jl files header information") do end test_files = readdir(Pkg.dir("JuliaFEM")*"/test") -#println("test files: $test_files") for test_file in test_files - println("checking is $test_file is real test file") - #if contains("test_", test_file) - if beginswith(test_file, "test_") + Logging.info("checking is $test_file is real test file") + if (startswith(test_file, "test_")) & (endswith(test_file, ".jl")) Logging.info("Running tests from file $test_file") include(test_file) end end -#include("test_xdmf.jl") -#include("test_elasticity_solver.jl") -#include("test_model.jl") -#include("test_abaqus_reader.jl") -#include("test_interfaces.jl") - # Keep this at the end of this file (include statements above this) @Logging.configure(level=DEBUG) @debug("Let's print the summary of the tests")