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

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.

主站蜘蛛池模板: 汾西县| 巫溪县| 樟树市| 全南县| 马鞍山市| 柏乡县| 田阳县| 静乐县| 昭苏县| 苏尼特右旗| 文山县| 五家渠市| 枣强县| 沁源县| 鄂托克旗| 姜堰市| 兴海县| 广河县| 新平| 台中市| 桦川县| 邯郸市| 红安县| 辽阳县| 衡南县| 丰城市| 银川市| 浙江省| 都兰县| 永济市| 封丘县| 吉安县| 台江县| 长宁区| 靖远县| 镇原县| 呼图壁县| 永吉县| 禄劝| 莱阳市| 汕尾市|