-
Notifications
You must be signed in to change notification settings - Fork 41
/
runtests.jl
93 lines (80 loc) · 2.25 KB
/
runtests.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
using Test, PerformanceTestTools
@testset "runtests.jl" begin
@testset "test_Cthulhu.jl" begin
include("test_Cthulhu.jl")
end
@testset "test_codeview.jl" begin
include("test_codeview.jl")
end
# TODO enable these tests
if false
@testset "test_irshow.jl" begin
include("test_irshow.jl")
end
else
@info "skipped test_irshow.jl"
end
if false
@testset "test_terminal.jl" begin
include("test_terminal.jl")
end
else
@info "skipped test_terminal.jl"
end
@testset "test_AbstractInterpreter.jl" begin
include("test_AbstractInterpreter.jl")
end
end
# TODO enable the VSCode-related tests
# module VSCodeServer
# using TypedSyntax
# struct InlineDisplay
# is_repl::Bool
# end
# const INLAY_HINTS_ENABLED = Ref(true)
# const DIAGNOSTICS_ENABLED = Ref(true)
# inlay_hints = []
# diagnostics = []
# function Base.display(d::InlineDisplay, x)
# if x isa Dict{String, Vector{TypedSyntax.InlayHint}}
# push!(inlay_hints, x)
# elseif eltype(x) == TypedSyntax.Diagnostic
# push!(diagnostics, x)
# end
# return nothing
# end
# function reset_test_containers()
# empty!(inlay_hints)
# empty!(diagnostics)
# end
# end
# module TestVSCodeExt # stops modules defined in test files from overwriting stuff from previous test
# using Test, PerformanceTestTools, ..VSCodeServer
# @testset "runtests.jl VSCodeExt" begin
# @testset "test_Cthulhu.jl" begin
# include("test_Cthulhu.jl")
# end
# @testset "test_codeview.jl" begin
# include("test_codeview.jl")
# include("test_codeview_vscode.jl")
# end
# # TODO enable these tests
# if false
# @testset "test_irshow.jl" begin
# include("test_irshow.jl")
# end
# else
# @info "skipped test_irshow.jl"
# end
# if false
# @testset "test_terminal.jl" begin
# include("test_terminal.jl")
# end
# else
# @info "skipped test_terminal.jl"
# end
# @testset "test_AbstractInterpreter.jl" begin
# include("test_AbstractInterpreter.jl")
# end
# end
# end