Sha256: c763b3a910f011189c02275b3e3da3c2b93a730d052218e030011b1333af8391
Contents?: true
Size: 572 Bytes
Versions: 3
Compression:
Stored size: 572 Bytes
Contents
require "xcpretty/version" require "xcpretty/printer" require "xcpretty/syntax" require "xcpretty/formatters/formatter" require "xcpretty/formatters/simple" require "xcpretty/formatters/rspec" require "xcpretty/reporters/junit" module XCPretty class ExitStatus include XCPretty::Matchers POSSIBLE_FAILURES = [ FAILING_TEST_MATCHER, /\serror:\s/ ] def self.code $exit_status || 0 end def self.handle(text) POSSIBLE_FAILURES.detect do |failure| $exit_status = 1 if text =~ failure end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xcpretty-0.0.9 | lib/xcpretty.rb |
xcpretty-0.0.8 | lib/xcpretty.rb |
xcpretty-0.0.7 | lib/xcpretty.rb |