Expertiza documentation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{| {{table}} | |||
| align="center" style="background:#f0f0f0;"|'''''' | |||
| align="center" style="background:#f0f0f0;"|'''JUnit4''' | |||
| align="center" style="background:#f0f0f0;"|'''TestNG''' | |||
| align="center" style="background:#f0f0f0;"|'''Cactus''' | |||
|- | |||
| Supporting Type of Testing||Suitable more for Unit testing||Supports Unit testing,Functional testing, end-to-end testing, integration testing ||Primarily unit testing. Also have frameworks for code logic unit testing , functional logic unit testing | |||
|- | |||
| Conventions||Rigid Example: ||Flexible||Not as flexible as TestNG | |||
|- | |||
| Derived from JUnit||Yes, from the previous versions||Inspired from Junit,with added functionalities ||Extends JUnit | |||
|- | |||
| Init () ||Init() has to be declared static||Not necessary|| | |||
|- | |||
| Flexibility for large suites||Not flexible for large test suites, ||Flexible for running large test suites of code and thus one test\'s failure shouldn\'t mean having to rerun a suite of thousands. || No, it is suitable for unit testing. | |||
|- | |||
| Suitable for ||Best for a single object||Best for a higher level testing||Best for server-side java code such as Servlets, EJB, etc. | |||
|- | |||
| Runs on||Command line, ANT,ECLIPSE||Command line,ANT, ECLIPSE, IDEA,MAVEN||ECLIPSE | |||
|- | |||
| |||||| | |||
|- | |||
| |||||| | |||
|- | |||
| | |||
|} |
Revision as of 16:04, 21 September 2009
Plenty of Testing framework exist for Java. JUnit has been the de facto for unit testing. However, other frameworks such as TestNG, JTIGER have been built to address various faults and deficiencies with JUnit. Our primary objective is to compare the various testing frameworks that exist for object oriented languages based on the primary purpose of the framework, strength, platforms that are supported by them, etc and thus help in choosing the best testing framework that fits in a particular suitable environment..
' | JUnit4 | TestNG | Cactus |
Supporting Type of Testing | Suitable more for Unit testing | Supports Unit testing,Functional testing, end-to-end testing, integration testing | Primarily unit testing. Also have frameworks for code logic unit testing , functional logic unit testing |
Conventions | Rigid Example: | Flexible | Not as flexible as TestNG |
Derived from JUnit | Yes, from the previous versions | Inspired from Junit,with added functionalities | Extends JUnit |
Init () | Init() has to be declared static | Not necessary | |
Flexibility for large suites | Not flexible for large test suites, | Flexible for running large test suites of code and thus one test\'s failure shouldn\'t mean having to rerun a suite of thousands. | No, it is suitable for unit testing. |
Suitable for | Best for a single object | Best for a higher level testing | Best for server-side java code such as Servlets, EJB, etc. |
Runs on | Command line, ANT,ECLIPSE | Command line,ANT, ECLIPSE, IDEA,MAVEN | ECLIPSE |