官术网_书友最值得收藏!

Testing frameworks

A testing framework is used for the automated testing of software. It is primarily a collection of postulations, perceptions, and observations which support automated testing of application code. Testing frameworks are not limited to just unit testing, they can very well be used for integration, smoke, and acceptance testing. There are two main frameworks for testing application code written in Scala: ScalaTest and Specs2. Both are equally easy to use and the choice of one over the other will depend on your testing approach. For example, ScalaTest uses the JUnit like testing structure, whereas the Specs2 test by itself is not prosaic but cleaves more closely to an immutability ideal.

ScalaTest is arguably more popular as it makes a transition from JUnit easier. For this reason, we will start with ScalaTest and in later chapters we will compare them both.

主站蜘蛛池模板: 阜康市| 克山县| 富源县| 长汀县| 淄博市| 九江县| 鄱阳县| 抚顺县| 彭阳县| 特克斯县| 沁源县| 如皋市| 肃宁县| 泸定县| 永新县| 铁岭市| 连南| 阜南县| 大宁县| 赤水市| 鄂托克前旗| 黄陵县| 嘉兴市| 定西市| 湖北省| 巴马| 通州区| 长丰县| 札达县| 宣武区| 莒南县| 敦煌市| 丰城市| 石台县| 保靖县| 彭山县| 五家渠市| 大名县| 嘉定区| 德州市| 美姑县|