File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,18 @@ TestParameterInjector
3
3
4
4
## Introduction
5
5
6
+ ` TestParameterInjector ` is a JUnit4 test runner that runs its test methods for
7
+ different combinations of field/parameter values.
8
+
6
9
Parameterized tests are a great way to avoid code duplication between tests and
7
10
promote high test coverage for data-driven tests.
8
11
12
+ There are a lot of alternative parameterized test frameworks, such as
13
+ [ junit.runners.Parameterized] ( https://github.com/junit-team/junit4/wiki/parameterized-tests )
14
+ and [ JUnitParams] ( https://github.com/Pragmatists/JUnitParams ) . We believe
15
+ ` TestParameterInjector ` is an improvement of those because it is more powerful
16
+ and simpler to use.
17
+
9
18
## Getting started
10
19
11
20
To start using ` TestParameterInjector ` right away, copy the following snippet:
@@ -31,6 +40,21 @@ public class MyTest {
31
40
}
32
41
```
33
42
43
+ And add the following dependency to your ` .pom ` file:
44
+
45
+ ``` xml
46
+ <dependency >
47
+ <groupId >com.google.testparameterinjector</groupId >
48
+ <artifactId >test-parameter-injector</artifactId >
49
+ <version >1.0-rc1</version >
50
+ </dependency >
51
+ ```
52
+
53
+ or see [ this maven.org
54
+ page] ( https://search.maven.org/artifact/com.google.testparameterinjector/test-parameter-injector )
55
+ for instructions for other build tools.
56
+
57
+
34
58
## Basics
35
59
36
60
### ` @TestParameter ` for testing all combinations
You can’t perform that action at this time.
0 commit comments