You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of this Tapir PR, I added a new test case to VerifyYamlTest, at the bottom:
test("xyz") {
val e = endpoint.post.in(header[Option[String]]("X-test"))
val expectedYaml = load("expected_string_body_response.yml")
val actualYaml = OpenAPIDocsInterpreter().toOpenAPI(e, Info("Entities", "1.0")).toYaml
println(expectedYaml)
val actualYamlNoIndent = noIndentation(actualYaml)
actualYamlNoIndent shouldBe expectedYaml
}
After some time the green "play"button appeared and I was able to run this single test. As expected, it failed, and I could see the println result.
However, then I changed the title to should not include '400 invalid value for: header test' response if an optional string header is used, re-run the test, and it was reported as "green". Additionally, no test output was recorded (The test case did not report any output. ) - so I don't think it was ever run. Running from SBT, the test failed.
Expected behavior
The test should still fail.
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v1.4.2
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I encountered the following scenario:
As part of this Tapir PR, I added a new test case to
VerifyYamlTest
, at the bottom:After some time the green "play"button appeared and I was able to run this single test. As expected, it failed, and I could see the println result.
However, then I changed the title to
should not include '400 invalid value for: header test' response if an optional string header is used
, re-run the test, and it was reported as "green". Additionally, no test output was recorded (The test case did not report any output.
) - so I don't think it was ever run. Running from SBT, the test failed.Expected behavior
The test should still fail.
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v1.4.2
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: