We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6c689 commit e8fb9b7Copy full SHA for e8fb9b7
test/runtests.jl
@@ -58,3 +58,17 @@ if occursin("General", MODULES_TO_TEST)
58
# Test hygiene of @model macro
59
include("hygiene.jl")
60
end
61
+
62
+if occursin("Test", MODULES_TO_TEST)
63
+ # This test is run just so that we can get code coverage on the `@testset`
64
+ # in `MOI.Test.runtests`. The `@testset` line doesn't get "hit" if we run
65
+ # via a normal `test_foo()` function because in the happy path, all tests
66
+ # will pass, and the `@testset "$(file)" begin` will absorb it without
67
+ # printing anything. Arguably, this is a bug with coverage, but macros are
68
+ # hard.
69
+ MOI.Test.runtests(
70
+ MOI.Utilities.Model{Float64}(),
71
+ MOI.Test.Config();
72
+ include = [r"test_model_default_ObjectiveSense"],
73
+ )
74
+end
0 commit comments