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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,10 @@ TestProcesses enables managing one or more of these "test processes" for your te
44
44
45
45
- Declarative and imperative using annotations or a Java API
46
46
- Test processes can be anything the OS can run
47
-
- A single test process only has to be defined one and can be reused by as many tests as neccessary
47
+
- A single test process only has to be defined once and can be reused by as many tests as neccessary
48
48
- A test-process is automatically started before a test if it is not running yet
49
49
- All running test-processes are automatically shut down (destroyed) before the JVM (or more precisely: Spring's Test Context) is shut down
50
-
- Different mechanisms can be used for detecting when a process has finished starting up and shutting down (e.g. TCP Port, Test/pattern in Log-File or stdOut/stdErr,...)
50
+
- Different mechanisms can be used for detecting when a process has finished starting up and shutting down (e.g. TCP Port, text/pattern in logfile or stdOut/stdErr,...)
51
51
- Fine-grained control about whether a test process should continue running or be stopped / restarted between test methods
52
52
- A test process' stdOut/stdErr streams can be easily obtained to run assertions. Either the full stream (since the process started) can be returned or just the specific part that has been written during the current test method.
53
53
- It is possible to block the test thread while waiting for an event on the test-process (e.g. a log message on stdOut/stdErr/logFile, a TCP Port to be opened/closed,...)
@@ -79,7 +79,7 @@ dependencies {
79
79
80
80
### Defining a test process
81
81
82
-
Before you can use a test-process, you will have to define it. To do so, you have to implement the `TestProcessDefinition` interface. It is highly recommanded to inherit from `AbstractTestProcessDefinition`:
82
+
Before you can use a test-process, you will have to define it. To do so, you have to implement the `TestProcessDefinition` interface. Inheriting from `AbstractTestProcessDefinition`, while not mandatory, is highly recommended:
83
83
84
84
```java
85
85
@Component
@@ -144,7 +144,7 @@ public void testUsingTheBeanName() {
144
144
145
145
### Test process lifecycle
146
146
147
-
Using the `@TestProcess` annotation wil have TestProcesses start the targetted `TestProcessDefinition` and make sure it is running before starting the annotated test method. By default, the test process will be left running so that it can be reused by multiple test methods. This avoids stopping and re-starting test processes between test methods, which significantly speeds up testing.
147
+
Using the `@TestProcess` annotation will have TestProcesses start the targetted `TestProcessDefinition` and make sure it is running before starting the annotated test method. By default, the test process will be left running so that it can be reused by multiple test methods. This avoids stopping and re-starting test processes between test methods, which significantly speeds up testing.
148
148
149
149
If you need more control over when a test process is stopped and/or restarted, you can specify that in the annotation:
150
150
@@ -174,7 +174,7 @@ For even more fine-grained control, you will need to [use the API](#using-the-ap
174
174
175
175
### Test process identifiers
176
176
177
-
Each test process definition needs to provide a test process identifier. Identifiers are used as unique keys for detecting wheter a test process is already running or not: whenever a provess with the same identifier is already running, the running process is stopped first before the new one is started, even if the default `StopStrategy.LEAVE_RUNNING` is used.
177
+
Each test process definition needs to provide a test process identifier. Identifiers are used as unique keys for detecting wheter a test process is already running or not: whenever a process with the same identifier is already running, the running process is stopped first before the new one is started, even if the default `StopStrategy.LEAVE_RUNNING` is used.
178
178
179
179
This enables you to have multiple mutually exclusive `TestProcessDefinition` implementations out of which *at most one* will be running at any time.
0 commit comments