metosin / metosin/testit

Test failures are reported with wrong line number

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
45
Forks
6
PR merge metrics
No merged PRs in 30d

Description

When a test failure gets reported, it gets assigned with the line number of the `facts` call. If you have a long segment of arrow assertions inside the facts block, this is not too helpful. It'd be better if either the line of the arrow or the line of the preceding form would be reported.

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation of the facts block and arrow assertions, then reproduce a failure in a long facts segment to inspect how its source line is selected. Done means failures report the arrow line or the preceding form instead of the facts call line.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.