These are chat archives for etorreborre/specs2

31st
May 2016
Anthony Garo
@agaro1121
May 31 2016 03:30
Does Specs2 have informers like ScalaTest I.e info(...) ?
Eric Torreborre
@etorreborre
May 31 2016 06:03
@agaro1121 not really but there are ways to “enrich” results with some messages
myValue aka “the number of tickets” must haveSize(3)
(this must doThis).updateMessage(“xxxx”)
“this result is correct” ==> { 1 must_== 1 }
Anthony Garo
@agaro1121
May 31 2016 10:06
Thank you @etorreborre this is very helpful
Eric Torreborre
@etorreborre
May 31 2016 10:11
Sorry there is a slight mistake: (this must doThis).updateMessage(m => “WRONG! ”+m)
@agaro1121 ^^^
Anthony Garo
@agaro1121
May 31 2016 10:13
Thank you for following up
I'm using the XmlMatchers and I wanted to update the messages
These tools have made my liver that
Life* that much easier
:)
Eric Torreborre
@etorreborre
May 31 2016 10:14
I’m not the fan of the current API because it is inconsistent. You have Result.updateMessage and MatchResult[T].updatedMessage but with different arguments :-(
but I don’t want to change this just in the name of stability
Anyway I’m glad this helps!