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

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:

主站蜘蛛池模板: 平度市| 广汉市| 荔浦县| 罗甸县| 炎陵县| 普兰县| 滨州市| 德清县| 贵州省| 宜春市| 鸡泽县| 钟山县| 灵寿县| 苗栗县| 化州市| 怀远县| 托里县| 民县| 榆中县| 涟水县| 闸北区| 增城市| 宁蒗| 南昌县| 布拖县| 西藏| 三门县| 隆子县| 稷山县| 龙井市| 安义县| 怀远县| 沭阳县| 昌图县| 黄浦区| 呈贡县| 芒康县| 河北区| 奇台县| 延川县| 瑞金市|