Skip to content

Commit

Permalink
reorganize tests
Browse files Browse the repository at this point in the history
reorganize tests into testsets, reduce unnecessary outputs
  • Loading branch information
tanmaykm committed Oct 21, 2020
1 parent bfb2697 commit c8d676f
Show file tree
Hide file tree
Showing 8 changed files with 407 additions and 383 deletions.
16 changes: 9 additions & 7 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using ProtoBuf, Test

include("testmetalock.jl")
include("testtypevers.jl")
include("testutilapi.jl")
include("testwellknown.jl")
include("testcodec.jl")
include("services/testsvc.jl")
include("testprotoc.jl")
@testset "ProtoBuf Tests" begin
include("testprotoc.jl")
include("services/testsvc.jl")
include("testmetalock.jl")
include("testtypevers.jl")
include("testutilapi.jl")
include("testwellknown.jl")
include("testcodec.jl")
end
4 changes: 2 additions & 2 deletions test/services/testsvc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ mutable struct TestRpcController <: ProtoRpcController
debug::Bool
end

debug_log(controller::TestRpcController, msg) = controller.debug && println(msg)
error_log(controller::TestRpcController, msg) = println(stderr, msg)
debug_log(controller::TestRpcController, msg) = controller.debug && @info(msg)
error_log(controller::TestRpcController, msg) = @error(msg)

# RpcChannel implementation for our test protocol
# The protocol is to write and read:
Expand Down
Loading

0 comments on commit c8d676f

Please sign in to comment.