These are chat archives for etorreborre/specs2

9th
Sep 2016
Lars Hupel
@larsrh
Sep 09 2016 08:25
@etorreborre I have a spec which throws an exception (not by a matcher), but SBT reports it as success
  def afterAll() = {
    logger.info("Shutting down system ...")
    Await.result(system.flatMap(_.dispose), duration)
    ???
  }
Eric Torreborre
@etorreborre
Sep 09 2016 08:26
I tested that and it works for me. Which version of specs2 are you using?
Lars Hupel
@larsrh
Sep 09 2016 08:26
3.8.4
I can try and put together a minimal reproducer
Eric Torreborre
@etorreborre
Sep 09 2016 08:26
That would be helpful, I'll try that on my side as well
were you explicitly using ??? in your spec?
Lars Hupel
@larsrh
Sep 09 2016 08:29
just for testing purposes, yes
I can reproduce that now, let me gist it
Eric Torreborre
@etorreborre
Sep 09 2016 08:29
In that case that's because specs2 generally interpret ??? as a failure, not an error. Can you try 3.8.4-20160909082850-3cbad91? (available in a minute, I'll tell you)
Lars Hupel
@larsrh
Sep 09 2016 08:30
Sorry, I don't understand the distinction between "failure" and "error"
Eric Torreborre
@etorreborre
Sep 09 2016 08:30
right after our stand-up :-)
Lars Hupel
@larsrh
Sep 09 2016 08:30
let's say I forgot to implement something in my teardown code, shouldn't that be caught
Eric Torreborre
@etorreborre
Sep 09 2016 08:30
In specs2 there are failures for assertions: 1 must_== 2 and errors for exceptions
Lars Hupel
@larsrh
Sep 09 2016 08:30
sure, take your time :smile:
BTW, thanks for your awesome support, it's much appreciated
(I feel like that doesn't get said often enough)
Lars Hupel
@larsrh
Sep 09 2016 09:18
trying it out
yes, works!
:sparkles:
Eric Torreborre
@etorreborre
Sep 09 2016 09:23
great :-)
Dale Wijnand
@dwijnand
Sep 09 2016 09:31
(phew, so it's not sbt/sbt#2442) :D
Eric Torreborre
@etorreborre
Sep 09 2016 09:32
oh, I was not aware of that one :-)
Dale Wijnand
@dwijnand
Sep 09 2016 09:35
The fix is merged, so it'll be in 0.13.13
Eric Torreborre
@etorreborre
Sep 09 2016 22:55
specs2 3.8.5 is out, with a version for Scala 2.12.0-RC1
Eric Torreborre
@etorreborre
Sep 09 2016 23:10
And for scalaz-7.1.x fans there is a specs2-core_2.10-3.8.5-scalaz-7.1.10