These are chat archives for etorreborre/specs2

23rd
Jun 2017
Andreas Flierl
@asflierl
Jun 23 2017 09:35
I've got a Form that is (correctly) failing. The summary for the spec says "0 example, 95 expectations, 1 failure, 0 error"... but then SBT reports:
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[success] Total time: 9 s, completed 23.06.2017 11:32:06
is this known? can I do anything to work around?
(specs2 version 3.9.1)
Eric Torreborre
@etorreborre
Jun 23 2017 09:38
looks like a bug... I need to reproduce before I can tell you
are you using a mutable spec? and which sbt version?
oh actually I can reproduce with an immutable spec and sbt 0.13.15
Andreas Flierl
@asflierl
Jun 23 2017 09:43
yes, same here
Eric Torreborre
@etorreborre
Jun 23 2017 09:54
I know where's the issue, I need to think how to best fix it
Eric Torreborre
@etorreborre
Jun 23 2017 13:37
@asflierl the fix for your form issue is in 3.9.1-20170623125925-0807b39. @edmondo1984 the fix I did yesterday was incorrect. This is also fixed in 3.9.1-20170623125925-0807b39
Andreas Flierl
@asflierl
Jun 23 2017 13:49
awesome, thank you @etorreborre
Andreas Flierl
@asflierl
Jun 23 2017 14:00
in that version, it would appear that forms do not appear correctly in a HTML report anymore , though
Eric Torreborre
@etorreborre
Jun 23 2017 15:44
oh sorry, can you just paste a before/after? I'll try to fix that during the weekend
Andreas Flierl
@asflierl
Jun 23 2017 15:46
the form just is not rendered as HTML at all... its textual representation (that is used for the console) is shown on the HTML page instead
using these testOptions: testOptions in Test += Tests.Argument(TestFrameworks.Specs2, "console", "html", "!pandoc", "!html.toc")
Eric Torreborre
@etorreborre
Jun 23 2017 15:47
thanks, that's probably not much, just a consequence of the previous fix which I didn't have time to fully test. I'll get back to you
Andreas Flierl
@asflierl
Jun 23 2017 15:48
okies. thanks
Eric Torreborre
@etorreborre
Jun 23 2017 16:15
I fixed the issue but it will take me more time to publish, I'll do this from home later
Eric Torreborre
@etorreborre
Jun 23 2017 20:23
New version with all fixes 3.9.1-20170623193746-58cbe74
@asflierl ^^^
Bjørn Madsen
@aeons
Jun 23 2017 20:37
hey
tests that match on a multiline string doesn't work on windows
I know this is not specs2 specific, but what is the preferred workaround?
Eric Torreborre
@etorreborre
Jun 23 2017 20:55
never had this before so no idea unfortunately (I was not even aware of such difference)
Andreas Flierl
@asflierl
Jun 23 2017 22:32
thanks a lot @etorreborre