Unit testing for Scala in IDEA

One article that I found suggested using Java's TestNG (because of
integrated IDE support) but that article was written almost 2 years ago.
Is there a better solution yet for IDEA?


评论操作 固定链接

Did you tried ScalaTest support? (can't currently suggest you Specs, bucause for Scala 2.8 It's not work)
In Scala plugin development we use JUnit (all JUnit classes written in Scala). May be it's better to use ScalaTest support, but it's internal reason, because we use internal IntelliJ IDEA tests structure, so we have to use JUnit. But we haven't problems with JUnit. Also we haven't problems with buidserver integration support, when use JUnit.
You also can use ScalaTest JUnit wrappers or TestNG wrappers. Then to run it's with ScalaTest or with JUnit (TestNG). I think you just need to experiment to find best solution for you.

Best regards,
Alexander Podkhalyuzin.