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

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.

主站蜘蛛池模板: 肇源县| 越西县| 萨迦县| 隆子县| 樟树市| 班玛县| 齐齐哈尔市| 庆安县| 车险| 原阳县| 岑巩县| 商洛市| 安庆市| 郓城县| 凤庆县| 图木舒克市| 德阳市| 奇台县| 视频| 肃北| 双桥区| 绥阳县| 思南县| 老河口市| 大邑县| 雷州市| 博白县| 临江市| 昭平县| 莲花县| 磴口县| 西丰县| 刚察县| 社会| 海晏县| 平阴县| 舟曲县| 江川县| 揭东县| 宣城市| 富民县|