This project adds a new runner to JUnit and provides much easier and readable parameterised tests for JUnit >=4.6.
Main differences to standard JUnit Parameterized runner:
- more explicit - params are in test method params, not class fields
- less code - you don't need a constructor to set up parameters
- you can mix parameterised with non-parameterised methods in one class
- params can be passed as a CSV string or from a parameters provider class
- parameters provider class can have as many parameters providing methods as you want, so that you can group different cases
- you can have a test method that provides parameters (no external classes or statics anymore)
- you can see actual parameter values in your IDE (in JUnit's Prameterized it's only consecutive numbers of parameters):
More on project page: http://code.google.com/p/junitparams/
No comments:
Post a Comment