XUnit.jl icon indicating copy to clipboard operation
XUnit.jl copied to clipboard

Add Missing Documentation

Open mdashti opened this issue 4 years ago • 1 comments

Here is the list of missing documentation:

  • filtering tests using regex
  • how to run tests in parallel and distributed mode

mdashti avatar Feb 07 '21 12:02 mdashti

I ran into this trying to get the distributed mode running. I currently came up with the following runtests.jl:

using Distributed
addprocs(...)

@everywhere using XUnit
runtests("setup.jl")
# setup.jl doesn't need to contain anything, but `runtests` needs to
# be invoked in order to set `GLOBAL_XUNIT_STATE`. seems like a bug.

# the testset needs to be included on all workers,
# or everything will just hang...
@everywhere @tesetset runner=DistributedTestRunner() begin
    include("tests.jl")
end

I tried to include tests.jl from setup.jl in order to get the filtering to work, but then the all workers run all tests, so it looks like that isn't the intended design.

maleadt avatar Jun 29 '23 20:06 maleadt