xuwei-k on master
Update sbt-header to 5.3.0 (compare)
xuwei-k on master
Update specs2-core to 4.8.0 (compare)
xuwei-k on master
Update sbt-release to 1.0.12 (compare)
xuwei-k on master
sbt 1.3.3 (compare)
xuwei-k on master
Update scalaz to 7.2.29 (compare)
xuwei-k on master
Update sbt-microsites to 0.9.7 (compare)
xuwei-k on master
Update tut-plugin to 0.6.13 (compare)
xuwei-k on master
sbt-sonatype 3.8 (compare)
xuwei-k on master
Update sbt-microsites to 0.9.6 (compare)
xuwei-k on master
sbt 1.3.2 (compare)
xuwei-k on master
sbt 1.3.1 (compare)
xuwei-k on master
Update sbt-wartremover to 2.4.3… (compare)
xuwei-k on master
Update scala-js to 0.6.29 (compare)
testz.assert
tends to disturb some people who confuse it with scala.Predef.assert
and therefore find it not very FP-ish
def sneakyHarness[T](self: Harness[T]): Harness[T] =
new Harness[T] {
def test(name: String)(assertions: () => Result): T =
self.test(name) { () =>
try {
assertions()
} catch {
case _: NotImplementedError =>
Fail()
case ex: Exception =>
ex.printStackTrace()
Fail()
}
}
...
}
FutureHarness
and TaskHarness
catch exceptions, but not in this way; only inside the Task
or Future
context.
FutureHarness
and convert it to a Harness
, there is no observable difference between that and PureHarness
as a Harness
.
TaskHarness
, actually, which are instructive: scalaz/testz#27
TestOnly
, for doing... exactly what it sounds like ;)Writer
or something.