Skip to content

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

Open
@mrcjkb

Description

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

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions