rft: wrap all tests in @testset #595
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request wraps the entire test suite in
@testset
. This ensures that even if one@testset
fails, the rest of the testsuite attempts to run, so that you get an overview of all issues with a proposed change from running the tests just once.failfast=true
to the@testset
(ref) which has the effect:failfast
: iftrue
, any test failure or error will cause the testset and any child testsets to return immediately (the default isfalse
).Additionally:
import Test as TT
(instead of e.g.using Test
)@testset
that loops over options, e.g.for FT in (Float64, Float32)
, does so with a consistent pattern that is supported byTest
, e.g.:@testset
loops is an example of a nice place to addfailfast=true
... presumably if a test fails onFloat64
, it does so too onFloat32
.artifact_calling_tests.jl
(was missing)To compare how a successful test suite would look like, compare this PR's buildkite (link) to e.g. this PR's buildkite (link)
If any tests fail, the
Test Summary
will expand to show much more detail about the failing test(s). In addition, the stack trace of each failing test is printed, of course:click to see example of failing test
To-do
Content