features/support/env.rb in xcpretty-0.0.1 vs features/support/env.rb in xcpretty-0.0.2

- old
+ new

@@ -1,17 +1,23 @@ $:.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 - add_run_input SAMPLE_KIWI_SUITE_COMPLETION 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 \ No newline at end of file