From 18ea5f5ba80063b534d3bc69871ab7a58452c0c8 Mon Sep 17 00:00:00 2001 From: Alinson S Xavier Date: Fri, 18 Sep 2020 12:07:25 -0500 Subject: [PATCH] Reactivate all tests --- test/model_test.jl | 3 ++- test/runtests.jl | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/model_test.jl b/test/model_test.jl index 9ae8cbb..cf108ec 100644 --- a/test/model_test.jl +++ b/test/model_test.jl @@ -42,8 +42,9 @@ using RELOG, Cbc, JuMP, Printf, JSON, MathOptInterface.FileFormats end @testset "solve" begin + solution_filename = tempname() solution = RELOG.solve("$(pwd())/../instances/s1.json", - output="$(pwd())/../tmp/sol.json") + output=solution_filename) @test "Costs" in keys(solution) @test "Fixed operating (\$)" in keys(solution["Costs"]) diff --git a/test/runtests.jl b/test/runtests.jl index c4a4c7f..25944ff 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -4,8 +4,8 @@ using Test @testset "RELOG" begin - #include("instance_test.jl") - #include("graph_test.jl") - #include("model_test.jl") + include("instance_test.jl") + include("graph_test.jl") + include("model_test.jl") include("reports_test.jl") end \ No newline at end of file