cvogt / cbt

CBT - fun, fast, intuitive, compositional, statically checked builds written in Scala
Other
488 stars 60 forks source link

test framework integration #145

Open cvogt opened 8 years ago

cvogt commented 8 years ago

we might want to check out sbt's test framework api

@sjrd also points to https://github.com/gtache/scalajs-gradle/tree/master/scalajs-plugin/src/main/scala/com/github/gtache/testing

cvogt commented 8 years ago

sbt's test framework https://www.javadoc.io/doc/org.scala-sbt/test-interface/1.0 looks fairly archaic. I am doubtful we can pull off something nice with this. It's all weirdly evens and side-effect based. I'd prefer something more declarative and FP-style. I am working on a different approach right now.

(Also see https://github.com/cvogt/cbt/issues/21 as a failed attempt to call scala test via it's command line runner.)

sjrd commented 8 years ago

If you design something else, use the opportunity to make it asynchronous all the way down to the turtles. I.e., the API systematically returns Futures of everything.