Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Individual test doesn't seem to run after changing its name #7123

Open
adamw opened this issue Jan 16, 2025 · 0 comments
Open

Individual test doesn't seem to run after changing its name #7123

adamw opened this issue Jan 16, 2025 · 0 comments

Comments

@adamw
Copy link

adamw commented Jan 16, 2025

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:

   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.

Image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant