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

Virtual text misplaced if there are 2 it tests with the same description #140

Open
mrcjkb opened this issue Nov 21, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@mrcjkb
Copy link
Owner

mrcjkb commented Nov 21, 2023

Neovim version (nvim -v)

v0.10.0

Operating system/version

NixOS unstable

How to reproduce the issue

Given the following hspec test:

describe "Namespace0" $ 
  describe "Namespace1" $
    it "foo" $ True `shouldBe` True -- succeeds
  describe "Namespace2" $
    it "foo" $ True `shouldBe` False -- fails

When I run the tests for the file

Expected behaviour

Then the failure message is added as virtual text as follows:

describe "Namespace0" $ 
  describe "Namespace1" $
    it "foo" $ True `shouldBe` True
  describe "Namespace2" $
    it "foo" $ True `shouldBe` False -- error: expected True but got False

Actual behaviour

Then the failure message is added as virtual text as follows:

describe "Namespace0" $ 
  describe "Namespace1" $
    it "foo" $ True `shouldBe` True -- error: expected True but got False
  describe "Namespace2" $
    it "foo" $ True `shouldBe` False -- error: expected True but got False

A minimal Neovim config used to reproduce this issue.

N/A

@mrcjkb mrcjkb added the bug Something isn't working label Nov 21, 2023
@mrcjkb mrcjkb self-assigned this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant