airframe icon indicating copy to clipboard operation
airframe copied to clipboard

aispec: Show the context code around shouldBe matchers

Open xerial opened this issue 2 years ago • 1 comments

It's useful to show the context code when test matchers fail:

plan shouldNotBe null

// [current error message]
failed: null should not be null (xxxTest.scala:20)

// [better error message]
failed: plan shouldNotBe null (xxxTest.scala: 20)
[obtained]
null
[actual]
null

xerial avatar Jun 25 '23 21:06 xerial

Based on the experiment on #3950, we can't introduce this feature without breaking binary compatibility.

xerial avatar Jun 02 '25 19:06 xerial