-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathruntests.jl
44 lines (37 loc) · 994 Bytes
/
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
module PetStoreV2Tests
include(joinpath(@__DIR__, "petstore", "src", "PetStoreClient.jl"))
using .PetStoreClient
using Test
include("petstore_test_petapi.jl")
include("petstore_test_userapi.jl")
include("petstore_test_storeapi.jl")
const server = "http://127.0.0.1:8080/v2"
function test_misc()
TestUserApi.test_404(server)
TestUserApi.test_userhook(server)
TestUserApi.test_set_methods()
end
function test_stress()
TestUserApi.test_parallel(server)
end
function petstore_tests()
TestUserApi.test(server)
TestStoreApi.test(server)
TestPetApi.test(server)
end
function runtests()
@testset "petstore v2" begin
@testset "miscellaneous" begin
test_misc()
end
@testset "petstore apis" begin
petstore_tests()
end
if get(ENV, "STRESS_PETSTORE", "false") == "true"
@testset "stress" begin
test_stress()
end
end
end
end
end # module PetStoreV2Tests