You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,9 +62,13 @@ TestProcesses enables managing one or more of these "test processes" for your te
62
62
63
63
## Installation
64
64
65
-
Add TestProcesses to your project's dependencies by declaring`io.github.netmikey.testprocesses:testprocesses-core` as a test-compile-time dependency:
65
+
TestProcesses is available as library in [Maven Central](https://search.maven.org/search?q=g:io.github.netmikey.testprocesses). Add TestProcesses to your project's dependencies by declaring a test-compile-time dependency:
@@ -145,24 +149,27 @@ Using the `@TestProcess` annotation wil have TestProcesses start the targetted `
145
149
If you need more control over when a test process is stopped and/or restarted, you can specify that in the annotation:
146
150
147
151
```java
148
-
// The test process will be stopped immediately after this test method
152
+
// The test process will be stopped immediately
153
+
// after this test method
149
154
@TestProcess(
150
155
beanClass=MyTestProcess.class,
151
156
stopStrategy=StopStrategy.STOP_AFTER_TEST)
152
157
153
-
// Even if the test process is already running, stop and restart it before starting this test
158
+
// Even if the test process is already running,
159
+
// stop and restart it before starting this test
154
160
@TestProcess(
155
161
beanClass=MyTestProcess.class,
156
162
startStrategy=StartStrategy.REQUIRE_RESTART)
157
163
158
-
// Make sure to (re-)start the test process before this test and to stop it immediately after this test
164
+
// Make sure to (re-)start the test process before
165
+
// this test and to stop it immediately after this test
159
166
@TestProcess(
160
167
beanClass=MyTestProcess.class,
161
168
startStrategy=StartStrategy.REQUIRE_RESTART,
162
169
stopStrategy=StopStrategy.STOP_AFTER_TEST)
163
170
```
164
171
165
-
For even more fine-grained control, you will need to use the API.
172
+
For even more fine-grained control, you will need to [use the API](#using-the-api).
166
173
167
174
168
175
### Test process identifiers
@@ -231,7 +238,7 @@ public class MyTest {
231
238
}
232
239
```
233
240
234
-
For more examples, see the functional tests in the `testprocesses-core` module.
241
+
For more examples, see the [functional tests](https://github.com/netmikey/testprocesses/tree/main/testprocesses-core/src/test/java/io/github/netmikey/testprocesses/functional) in the `testprocesses-core` module.
0 commit comments