Sha256: 108a7801009855116e7573a9f52fa060261746a260f1cb73e851aa418252b2f0
Contents?: true
Size: 996 Bytes
Versions: 1
Compression:
Stored size: 996 Bytes
Contents
$:.unshift File.expand_path('../../..', __FILE__) require "tempfile" require "spec/fixtures/constants.rb" TEST_SUITE_COMPLETION_MATCHER = /Executed \d+ tests, with \d+ failures \(\d+ unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds/ TEST_SUITE_BEGINNING_MATCHER = /Test Suite '.+' started/ TEST_PATH_MATCHER = %r{[\w/\-\s]+:\d+} PASSING_TEST_NAME_MATCHER = %r{\w+\s\w+\s\(\d+\.\d+\sseconds\)} FAILING_TEST_NAME_MATCHER = %r{\w+\s\w+, expected:} INPUT_FILE = "xcpretty_input" RED_START = "\e[31m" COLOR_END = "\e[0m" GREEN_START = "\e[32;1m" def run_xcpretty flags add_run_input SAMPLE_OCUNIT_SUITE_COMPLETION add_run_input SAMPLE_EXECUTED_TESTS input_file = Tempfile.new(INPUT_FILE) File.write(input_file.path, run_input) @output = %x(cat '#{input_file.path}' | bin/xcpretty #{flags}) input_file.unlink end def add_run_input text run_input << "\n#{text}" end def run_input @input ||= "" end def run_output @output ||= "" end After do @input = "" @output = "" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xcpretty-0.0.2 | features/support/env.rb |