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

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:

主站蜘蛛池模板: 保康县| 珲春市| 靖州| 鸡西市| 和政县| 潜江市| 讷河市| 吴旗县| 南昌县| 阿瓦提县| 江孜县| 耒阳市| 临西县| 云浮市| 南汇区| 习水县| 福鼎市| 沈阳市| 千阳县| 灌云县| 和龙市| 枝江市| 城固县| 沙雅县| 寻甸| 平陆县| 潍坊市| 共和县| 旬邑县| 封开县| 东阿县| 新田县| 加查县| 凤翔县| 龙里县| 谷城县| 南昌市| 神池县| 青河县| 剑阁县| 桂阳县|