lib/xcpretty/parser.rb in xcpretty-0.1.1 vs lib/xcpretty/parser.rb in xcpretty-0.1.2

- old
+ new

@@ -14,10 +14,14 @@ BUILD_TARGET_MATCHER = /^=== BUILD TARGET\s(.*)\sOF PROJECT\s(.*)\sWITH.*CONFIGURATION\s(.*)\s===/ # @regex Nothing returned here for now CHECK_DEPENDENCIES_MATCHER = /^Check dependencies/ + # @regex Captured groups + # $1 = whole error + CLANG_ERROR_MATCHER = /^(clang: error:.*)$/ + # @regex Nothing returned here for now CLEAN_REMOVE_MATCHER = /^Clean.Remove/ # @regex Captured groups # $1 target @@ -88,10 +92,14 @@ # @regex Captured groups # $1 = library LIBTOOL_MATCHER = /^Libtool.*\/(.*\.a)/ # @regex Captured groups + # $1 = whole error + LD_ERROR_MATCHER = /^(ld:.*not found for.*)/ + + # @regex Captured groups # $1 reason LINKER_FAILURE_MATCHER = /^(Undefined symbols for architecture .*):$/ # @regex Captured groups # $1 = target @@ -189,10 +197,12 @@ formatter.format_clean_target($1, $2, $3) when COPY_STRINGS_MATCHER formatter.format_copy_strings_file($1) when CHECK_DEPENDENCIES_MATCHER formatter.format_check_dependencies + when CLANG_ERROR_MATCHER + formatter.format_error($1) when CODESIGN_FRAMEWORK_MATCHER formatter.format_codesign($1) when CODESIGN_MATCHER formatter.format_codesign($1) when CODESIGN_ERROR_MATCHER @@ -209,9 +219,11 @@ formatter.format_failing_test($2, $3, $4, $1) when FATAL_ERROR_MATCHER formatter.format_error($1) when GENERATE_DSYM_MATCHER formatter.format_generate_dsym($1) + when LD_ERROR_MATCHER + formatter.format_error($1) when LIBTOOL_MATCHER formatter.format_libtool($1) when LINKING_MATCHER formatter.format_linking($1, $2, $3) when PENDING_TEST_MATCHER