diff test/runtests.jl @ 1753:c1ebc96961a2 feature/jet_aqua

Add JET and Aqua to test suite
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 13 Sep 2024 11:35:17 +0200
parents 471a948cd2b2
children 5e4b2f8e9bf9
line wrap: on
line diff
--- a/test/runtests.jl	Mon Sep 09 08:26:31 2024 +0200
+++ b/test/runtests.jl	Fri Sep 13 11:35:17 2024 +0200
@@ -1,4 +1,7 @@
+using Diffinitive
 using Test
+using JET
+using Aqua
 using Glob
 
 """
@@ -18,7 +21,7 @@
     run_testfiles(".", globs)
 end
 
-function  run_testfiles(path, globs)
+function  run_testfiles(path,   globs)
     for name ∈ readdir(path)
         filepath = joinpath(path, name)
 
@@ -48,6 +51,15 @@
 testsetname = isempty(ARGS) ? "Diffinitive.jl" : "["*join(ARGS, ", ")*"]"
 
 @testset "$testsetname" begin
+    if isempty(ARGS)
+        @testset "Code quality (Aqua.jl)" begin
+            Aqua.test_all(Diffinitive)
+        end
+        @testset "Code linting (JET.jl)" begin
+            JET.test_package(Diffinitive; target_defined_modules = true)
+        end
+    end
+
     run_testfiles(ARGS)
     println()
 end