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

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.

主站蜘蛛池模板: 同德县| 白玉县| 汕头市| 大洼县| 潮州市| 安龙县| 夹江县| 甘泉县| 修文县| 双柏县| 达孜县| 宁明县| 蒙山县| 上犹县| 江山市| 阜新市| 昂仁县| 海口市| 腾冲县| 新蔡县| 遵化市| 安岳县| 濉溪县| 彩票| 米易县| 溧水县| 阜康市| 墨竹工卡县| 郴州市| 诏安县| 河南省| 玛沁县| 敦化市| 霸州市| 天等县| 克拉玛依市| 邹城市| 汽车| 青阳县| 澄迈县| 安塞县|