Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/UnitTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ jobs:
- 'min'
- '1'
- 'pre'
- 'nightly'
julia-arch:
- x64
- default
- x86
os:
- ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ParallelTestRunner"
uuid = "d3525ed8-44d0-4b2c-a655-542cee43accc"
authors = ["Valentin Churavy <v.churavy@gmail.com>"]
version = "0.1.1"
version = "0.1.2"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
14 changes: 6 additions & 8 deletions src/ParallelTestRunner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,28 +154,26 @@ function runtest(::Type{TestRecord}, f, name, init_code)
res = @timed @testset $name begin
$f
end
(res...,)
(; res.value, res.time, res.bytes, res.gctime)
end

#data[1] is the testset

# process results
rss = Sys.maxrss()
if VERSION >= v"1.11.0-DEV.1529"
tc = Test.get_test_counts(data[1])
tc = Test.get_test_counts(data.value)
passes, fails, error, broken, c_passes, c_fails, c_errors, c_broken =
tc.passes, tc.fails, tc.errors, tc.broken, tc.cumulative_passes,
tc.cumulative_fails, tc.cumulative_errors, tc.cumulative_broken
else
passes, fails, errors, broken, c_passes, c_fails, c_errors, c_broken =
Test.get_test_counts(data[1])
Test.get_test_counts(data.value)
end
if data[1].anynonpass == false
data = (
(passes + c_passes, broken + c_broken),
data[2],
data[3],
data[4],
data.time,
data.bytes,
data.gctime,
)
end
res = TestRecord(data..., rss)
Expand Down