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

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:

主站蜘蛛池模板: 长治县| 阿鲁科尔沁旗| 酒泉市| 时尚| 万安县| 深圳市| 天水市| 博乐市| 泰来县| 南雄市| 麦盖提县| 淮南市| 平邑县| 扶绥县| 衡阳县| 比如县| 来宾市| 惠州市| 龙游县| 五常市| 天镇县| 台中市| 天长市| 靖州| 桐梓县| 广汉市| 邢台市| 渭南市| 巢湖市| 靖远县| 商水县| 溧阳市| 巴彦淖尔市| 华池县| 莱西市| 西贡区| 溧水县| 温州市| 赫章县| 三河市| 益阳市|