File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -142,14 +142,28 @@ it can be filtered out.
142
142
## Running tests in parallel with ` Distributed `
143
143
144
144
Currently, the tests are automatically run in parallel whenever there are
145
- multiple workers, which have to be set manually. The workflow looks like:
145
+ multiple workers, which have to be set manually. Running the tests looks like:
146
146
``` julia
147
147
using Distributed
148
148
addprocs (2 )
149
149
@everywhere include (" test/tests.jl" )
150
150
MyPackageTests. runtests ()
151
151
```
152
152
153
+ If the test code doesn't use ` ReTest `
154
+ (cf. [ Working with test files which use ` Test ` ] ( @ref ) ), this can be done as
155
+ follows:
156
+ ``` julia
157
+ using Distributed
158
+ addprocs (2 )
159
+ using ReTest
160
+ @everywhere begin
161
+ using ReTest, MyPackage
162
+ ReTest. hijack (MyPackage)
163
+ end
164
+ MyPackageTests. runtests ()
165
+ ```
166
+
153
167
!!! note
154
168
155
169
As was already mentioned, testset-for iterators are evaluated at load time in
You can’t perform that action at this time.
0 commit comments