These are chat archives for etorreborre/specs2

27th
Feb 2018
Eric Torreborre
@etorreborre
Feb 27 2018 10:43
There's the little known method called pp for "print and pass". For example: thisComplexObject.pp must beOk. Sprinkling .pp around can help you see what's going on (it's actually a bunch of overloaded methods, you can explore the API to find which one is the most convenient for you)
Edmondo Porcu
@edmondo1984
Feb 27 2018 11:12
I tried yeah but for very long tests is kind of painful, maybe I can submit a pr about capturing results and logging them
btw , in 4.0.1 exceptions in steps are still swallowed silently
Eric Torreborre
@etorreborre
Feb 27 2018 11:13
Can you please create a proper github issues for those exceptions in steps (with a small repro case), I'll try to have another look at it. Also if very long tests are painful, the problem might not be the testing framework :-)
Edmondo Porcu
@edmondo1984
Feb 27 2018 15:10
it is more like "complicated assertions" rather than long tests
I was basically trying to assert a list contained 5 valuecheck
each of this valuecheck has 5 results in "and"
Eric Torreborre
@etorreborre
Feb 27 2018 15:19
Sometimes the easiest thing to do is to find a good textual representation of the actual and expected values and compare the 2