I'm using Scala Test Spec and JunitTestRunner in Eclipse. Where does the spec output go? And is there some way to route it to the console?
For example:
val p = new SQLParser
describe("given a sql string with an order clause") {
describe("(when direction is asc)") {
val sql = "select name from users order by name asc"
it("should be parsed into an Asc object containing the given field") {
val query = p.parse(sql).get
query.operation should be (Select("name"))
query.from should be (From("users"))
query.order should be (Option(Asc("name")))
}
}
}
Only gives me the spec output from the first "describe".
That's about all you would want there, but I was hoping to see it all.