diff --git a/test/runtests.jl b/test/runtests.jl index fc14de3..b699694 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -3,10 +3,7 @@ using QuantumSymbolics # filter for the test testfilter = ti -> begin - exclude = Symbol[] - if get(ENV,"JET_TEST","")!="true" - push!(exclude, :jet) - end + exclude = Symbol[:jet] if !(VERSION >= v"1.10") push!(exclude, :doctests) push!(exclude, :aqua) @@ -18,3 +15,7 @@ end println("Starting tests with $(Threads.nthreads()) threads out of `Sys.CPU_THREADS = $(Sys.CPU_THREADS)`...") @run_package_tests filter=testfilter + +if get(ENV,"JET_TEST","")=="true" + @run_package_tests filter=(ti -> :jet in ti.tags) +end diff --git a/test/test_superop.jl b/test/test_superop.jl index b4d4a3a..98a09a2 100644 --- a/test/test_superop.jl +++ b/test/test_superop.jl @@ -1,5 +1,6 @@ @testitem "Superop" begin using LinearAlgebra + using QuantumOptics # # single qubit