What’s the difference between ScalaTest and Scala Specs unit test frameworks?

前端 未结 5 1662
耶瑟儿~
耶瑟儿~ 2021-01-29 19:49

Both are BDD (Behavior Driven Development) capable unit test frameworks for Scala written in Scala. And Specs is built upon may also involve the ScalaTest frame

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-29 20:10

    If one decision factor is the compile time, scalatest seems to perform better.

    We're currently using specs2 in our project, but suffer from slow compile times in tests. I just finished a POC on moving to scalatest and saw compile times drop by a factor of about 0.82 just by switching the 2 frameworks in some of our sources.

提交回复
热议问题