This section contains the Features & Need of Junit.
Features & Need of JUnit
Features of JUnit
Following are some of the key features of JUnit :
-
Annotation to identify the test methods(After JUnit 4 ).
-
Assertions for testing expected results.
-
Test fixtures for sharing common test data.
-
Test runners for running tests.
-
Aggregating tests using suites.
Need of JUnit
-
JUnit tests allow you to write code faster while increasing quality.
-
JUnit is elegantly simple. It is less complex & takes less time.
-
JUnit tests can be run automatically and they check their own results and provide immediate feedback. There's no need to manually comb through a report of test results.
-
JUnit tests can be organized into test suites containing test cases and even other test suites.
-
Writing JUnit tests is inexpensive.
[ 0 ] Comments