Skip to content

Commit

Permalink
disable VSCode test temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Mar 3, 2024
1 parent 8fbb2d3 commit 45ef6c3
Showing 1 changed file with 54 additions and 52 deletions.
106 changes: 54 additions & 52 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,62 +30,64 @@ using Test, PerformanceTestTools
end
end

module VSCodeServer
using TypedSyntax
# TODO enable the VSCode-related tests

struct InlineDisplay
is_repl::Bool
end
const INLAY_HINTS_ENABLED = Ref(true)
const DIAGNOSTICS_ENABLED = Ref(true)
# module VSCodeServer
# using TypedSyntax

inlay_hints = []
diagnostics = []
# struct InlineDisplay
# is_repl::Bool
# end
# const INLAY_HINTS_ENABLED = Ref(true)
# const DIAGNOSTICS_ENABLED = Ref(true)

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
# inlay_hints = []
# diagnostics = []

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
# 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

@testset "test_codeview.jl" begin
include("test_codeview.jl")
include("test_codeview_vscode.jl")
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

# 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_codeview.jl" begin
# include("test_codeview.jl")
# include("test_codeview_vscode.jl")
# end

@testset "test_AbstractInterpreter.jl" begin
include("test_AbstractInterpreter.jl")
end
end
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

0 comments on commit 45ef6c3

Please sign in to comment.