mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add #failed? method to Report
This commit is contained in:
parent
dbffad837d
commit
e92b1dc466
2 changed files with 21 additions and 0 deletions
|
@ -41,6 +41,11 @@ module Spectator
|
|||
@results.size
|
||||
end
|
||||
|
||||
# Indicates whether the test suite failed.
|
||||
def failed?
|
||||
failed_count > 0
|
||||
end
|
||||
|
||||
# Returns a set of results for all failed examples.
|
||||
def failures
|
||||
@results.each.compact_map(&.as?(FailedResult))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue