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

JUnit ecosystem

JUnit is one of the most popular test frameworks for the JVM, and it is considered one of the most influential frameworks in software engineering. We can find several libraries and frameworks that provide additional functionality on top of JUnit. Some examples of these ecosystem enhancers are:

  • Mockito (http://site.mockito.org/): This is the mock framework, which can be used in conjunction with JUnit.
  • AssertJ (http://joel-costigliola.github.io/assertj/): This is the fluent assertions library for Java.
  • Hamcrest (http://hamcrest.org/): This is the library with matchers that can be combined to create flexible and readable assertions.
  • Cucumber (https://cucumber.io/): This is the testing framework that allows to run automated acceptance tests written in a Behavior-Driven Development (BDD) style.
  • FitNesse (http://www.fitnesse.org/): This is the testing framework designed to support acceptance testing by facilitating detailed readable descriptions of system functions.

While JUnit is the largest testing framework for the JVM, it is not the only one. There are several other testing frameworks available for the JVM. Some examples are:

Thanks to JUnit, testing has moved to a central part of programming. Consequently, the underlying testing model implemented in JUnit, has been ported to a set of testing frameworks outside the boundary of the JVM, in the so-called xUnit family. In this model, we find the concepts of test case, runner, fixture, suite, test execution, report, and assertion. To name a few, consider the following frameworks. All of them fall into the xUnit family:

主站蜘蛛池模板: 伊金霍洛旗| 汉源县| 大名县| 伊宁县| 新巴尔虎右旗| 剑阁县| 东莞市| 潮州市| 新乡县| 夏河县| 资源县| 四子王旗| 长岭县| 正宁县| 定远县| 宜宾市| 宜兰市| 会昌县| 五原县| 安溪县| 西充县| 北碚区| 东海县| 石棉县| 图木舒克市| 论坛| 开封市| 民和| 海伦市| 唐海县| 龙游县| 西昌市| 榆树市| 莱州市| 延川县| 延安市| 吕梁市| 梅河口市| 大荔县| 隆昌县| 武隆县|