-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid method-override warnings in tests by using separate modules (#177)
Looks good to me!
- Loading branch information
Showing
9 changed files
with
80 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
println("installing GLMakie for plotting tests") | ||
using Pkg | ||
Pkg.add("GLMakie") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,52 @@ | ||
@testitem "Examples - colorcentermodularcluster" tags=[:examples] begin | ||
@testitem "Examples - colorcentermodularcluster 1" tags=[:examples] begin | ||
include("../examples/colorcentermodularcluster/1_time_to_connected.jl") | ||
if get(ENV,"QUANTUMSAVORY_PLOT_TEST","")=="true" | ||
include("../examples/colorcentermodularcluster/2_real_time_visualization.jl") | ||
end | ||
end | ||
|
||
@testitem "Examples - congestionchain" tags=[:examples] begin | ||
if get(ENV,"QUANTUMSAVORY_PLOT_TEST","")=="true" | ||
include("setup_plotting.jl") | ||
include("../examples/congestionchain/1_visualization.jl") | ||
end | ||
@testitem "Examples - colorcentermodularcluster 2" tags=[:examples_plotting] begin | ||
include("../examples/colorcentermodularcluster/2_real_time_visualization.jl") | ||
end | ||
|
||
@testitem "Examples - firstgenrepeater" tags=[:examples] begin | ||
if get(ENV,"QUANTUMSAVORY_PLOT_TEST","")=="true" | ||
include("setup_plotting.jl") | ||
include("../examples/firstgenrepeater/1_entangler_example.jl") | ||
include("../examples/firstgenrepeater/2_swapper_example.jl") | ||
include("../examples/firstgenrepeater/3_purifier_example.jl") | ||
include("../examples/firstgenrepeater/4_visualization.jl") | ||
include("../examples/firstgenrepeater/5_clifford_full_example.jl") | ||
include("../examples/firstgenrepeater/6_compare_formalisms.jl") | ||
end | ||
include("../examples/firstgenrepeater/6.1_compare_formalisms_noplot.jl") | ||
@testitem "Examples - congestionchain" tags=[:examples_plotting] begin | ||
include("../examples/congestionchain/1_visualization.jl") | ||
end | ||
|
||
@testitem "Examples - firstgenrepeater_v2" tags=[:examples] begin | ||
if get(ENV,"QUANTUMSAVORY_PLOT_TEST","")=="true" | ||
include("setup_plotting.jl") | ||
include("../examples/firstgenrepeater_v2/1_entangler_example.jl") | ||
include("../examples/firstgenrepeater_v2/2_swapper_example.jl") | ||
end | ||
@testitem "Examples - firstgenrepeater 1" tags=[:examples_plotting] begin | ||
include("../examples/firstgenrepeater/1_entangler_example.jl") | ||
end | ||
@testitem "Examples - firstgenrepeater 2" tags=[:examples_plotting] begin | ||
include("../examples/firstgenrepeater/2_swapper_example.jl") | ||
end | ||
@testitem "Examples - firstgenrepeater 3" tags=[:examples_plotting] begin | ||
include("../examples/firstgenrepeater/3_purifier_example.jl") | ||
end | ||
@testitem "Examples - firstgenrepeater 4" tags=[:examples_plotting] begin | ||
include("../examples/firstgenrepeater/4_visualization.jl") | ||
end | ||
@testitem "Examples - firstgenrepeater 5" tags=[:examples_plotting] begin | ||
include("../examples/firstgenrepeater/5_clifford_full_example.jl") | ||
end | ||
@testitem "Examples - firstgenrepeater 6" tags=[:examples_plotting] begin | ||
include("../examples/firstgenrepeater/6_compare_formalisms.jl") | ||
end | ||
@testitem "Examples - firstgenrepeater 6.1" tags=[:examples] begin | ||
include("../examples/firstgenrepeater/6.1_compare_formalisms_noplot.jl") | ||
end | ||
|
||
@testitem "Examples - simpleswitch" tags=[:examples] begin | ||
if get(ENV,"QUANTUMSAVORY_PLOT_TEST","")=="true" | ||
# TODO-MATCHING due to the dependence on BlossomV.jl this has trouble installing. See https://github.com/JuliaGraphs/GraphsMatching.jl/issues/14 | ||
#include("setup_plotting.jl") | ||
#include("../examples/simpleswitch/1_interactive_visualization.jl") | ||
end | ||
@testitem "Examples - firstgenrepeater_v2 1" tags=[:examples_plotting] begin | ||
include("../examples/firstgenrepeater_v2/1_entangler_example.jl") | ||
end | ||
@testitem "Examples - firstgenrepeater_v2 2" tags=[:examples_plotting] begin | ||
include("../examples/firstgenrepeater_v2/2_swapper_example.jl") | ||
end | ||
|
||
@safetestset "repeatergrid" begin | ||
if get(ENV, "QUANTUMSAVORY_PLOT_TEST","")=="true" | ||
include("setup_plotting.jl") | ||
include("../examples/repeatergrid/1a_async_interactive_visualization.jl") | ||
include("../examples/repeatergrid/2a_sync_interactive_visualization.jl") | ||
end | ||
@testitem "Examples - simpleswitch" tags=[:examples_plotting] begin | ||
# TODO-MATCHING due to the dependence on BlossomV.jl this has trouble installing. See https://github.com/JuliaGraphs/GraphsMatching.jl/issues/14 | ||
#include("../examples/simpleswitch/1_interactive_visualization.jl") | ||
end | ||
|
||
if get(ENV,"QUANTUMSAVORY_PLOT_TEST","")=="true" | ||
import GLMakie | ||
GLMakie.closeall() # to avoid errors when running headless | ||
@safetestset "Examples - repeatergrid 1a" tags=[:examples_plotting] begin | ||
include("../examples/repeatergrid/1a_async_interactive_visualization.jl") | ||
end | ||
@safetestset "Examples - repeatergrid 2a" tags=[:examples_plotting] begin | ||
include("../examples/repeatergrid/2a_sync_interactive_visualization.jl") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters