ionide / ionide/ionide-vscode-fsharp

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

Open
#2,007 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
F#
Stars
897
Forks
297
Avg merge
2d 1h
Merged PRs (30d)
1

Description

### 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](https://github.com/ionide/ionide-vscode-fsharp/assets/4760796/0f433f7e-3804-4935-814f-01d3f35204db)

### Steps to reproduce

1. Create a test list with the following code

```fs
[]
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
- OS: Mac
- .NET SDK version: [e.g. 5.0.100]8.0.204
- Ionide version: [e.g 5.0.1, don't use descriptions like `latest` ]: 7.19.1

### Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Run the provided F# Expecto reproduction with the test named `1 + 1 = 2`, then trace how the test explorer parses and displays that name. Done means the test appears as one result without an indented second line; verify this against the reproduction in the VS Code test explorer.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp, vscode
Domain
devtools, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.