scala - specs2 run a specific test -
i'm trying run specific test specs2
, i'm running 1 minor issue there. code i'm running:
import org.specs2._ class demospec2 extends specification { def = s2""" specification check 'hello world' string 'hello world' string should contain 11 characters ${set11().e1} ${tag("feature")} start 'hello' ${set2().e2} ${tag("abc")} """ case class set11(){ def e1 = 1 must_== 1 } case class set2(){ def e2 = 1 must_== 1 } }
the ${tag("feature")}
part makes line in output. looks like:
[info] 'hello world' string should [info] + contain 11 characters [info] [info] + start 'hello'
i don't want line. i'm doing wrong?
you not doing wrong, reporting bug (fixed in latest 2.2-snapshot). in meantime things should ok if suppress spaces:
import org.specs2._ class demospec2 extends specification { def = s2""" specification check 'hello world' string 'hello world' string should contain 11 characters ${set11().e1}${("feature")} start 'hello' ${set2().e2}${tag("abc")} """ case class set11(){ def e1 = 1 must_== 1 } case class set2(){ def e2 = 1 must_== 1 } }
Comments
Post a Comment