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: docs/src/advanced.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,11 @@ The `test_worker` function receives the test name and should return either:
166
166
- A worker object (from [`addworker`](@ref)) for tests that need special configuration
167
167
-`nothing` to use the default worker pool
168
168
169
+
!!! note
170
+
If your test suite uses both a `test_worker` function and `init_worker_code` as described in a prior section,
171
+
`test_worker` must also take in `init_worker_code` as a second argument. You are responsible for passing it to
172
+
[`addworker`](@ref) if your `init_code` depends on any `init_worker_code` definitions.
173
+
169
174
## Custom Arguments
170
175
171
176
If your package needs to accept its own command-line arguments in addition to `ParallelTestRunner`'s options, use [`parse_args`](@ref) with custom flags:
0 commit comments