elm-explorations / elm-explorations/test

Feature request: Add line number and input value to output for failed tests

Open
#152 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elm
Stars
244
Forks
40
Avg merge
1d 23h
Merged PRs (30d)
2

Description

It could be on by default, or through a command-line argument. This way you can quickly click on the filename/line number in VS Code to jump to the failing test. And by having the input that the test failed on, you could diagnose what happened without having to look up the spec in the first place.

Here's an example of what failing test output looks like today, without the filename/line number or input for the failed test.

```
↓ Tests
↓ Bob
✗ stating something

"Fine. Be that way!"

│ Expect.equal

"Whatever."
```

Moved from https://github.com/rtfeldman/node-test-runner/issues/428

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.