ionide / ionide-vscode-fsharp

VS Code plugin for F# development
http://ionide.io
MIT License
849 stars 276 forks source link

Expecto tests with a `+` in the name create an indented result in the test explorer #2007

Open MangelMaxime opened 2 months ago

MangelMaxime commented 2 months ago

Describe the bug

I have a test named 1 + 1 = 2 with Expecto and here is how it appear in the test explorer view:

CleanShot 2024-04-29 at 15 18 50

Steps to reproduce

  1. Create a test list with the following code

    [<Tests>]
    let tests =
        testList "All" [
            test "1 + 1 = 2" {
                let actual = 1 + 1
                Expect.equal actual 2
            }
        ]
  2. Open the test explorer view

Link to sample reproduction

Expected behaviour

Should not split the test in 2 lines.

Screenshots

Machine info

Additional context

Add any other context about the problem here.