spec/xcpretty/parser_spec.rb in xcpretty-0.1.10 vs spec/xcpretty/parser_spec.rb in xcpretty-0.1.11

- old
+ new

@@ -26,10 +26,15 @@ it "parses build target" do @formatter.should receive(:format_build_target).with("The Spacer", "Pods", "Debug") @parser.parse(SAMPLE_BUILD) end + it "parses analyze target" do + @formatter.should receive(:format_analyze_target).with("The Spacer", "Pods", "Debug") + @parser.parse(SAMPLE_ANALYZE_TARGET) + end + it "parses clean remove" do @formatter.should receive(:format_clean_remove) @parser.parse(SAMPLE_CLEAN_REMOVE) end @@ -82,10 +87,15 @@ it "parses compiling Objective-C++ classes" do @formatter.should receive(:format_compile).with("KWNull.mm", "Classes/Core/KWNull.mm") @parser.parse(SAMPLE_ANOTHER_COMPILE.sub('.m', '.mm')) end + it 'parses compiling Swift source files' do + @formatter.should receive(:format_compile).with("KWNull.swift", "Classes/Core/KWNull.swift") + @parser.parse(SAMPLE_ANOTHER_COMPILE.sub('.m', '.swift')) + end + it "parses compiling C and C++ files" do ['.c', '.cc', '.cpp', '.cxx'].each do |file_extension| @formatter.should receive(:format_compile).with("KWNull" + file_extension, "Classes/Core/KWNull" + file_extension) @parser.parse(SAMPLE_ANOTHER_COMPILE.sub('.m', file_extension)) end @@ -150,9 +160,14 @@ @formatter.should receive(:format_failing_test).with("RACCommandSpec", "enabled_signal_should_send_YES_while_executing_is_YES_and_allowsConcurrentExecution_is_YES", "expected: 1, got: 0", "/Users/musalj/code/OSS/ReactiveCocoa/ReactiveCocoaFramework/ReactiveCocoaTests/RACCommandSpec.m:458") @parser.parse(SAMPLE_OLD_SPECTA_FAILURE) + end + + it "parses ld bitcode errors" do + @formatter.should receive(:format_error).with(SAMPLE_BITCODE_LD.strip) + @parser.parse(SAMPLE_BITCODE_LD) end it "parses passing ocunit tests" do @formatter.should receive(:format_passing_test).with('RACCommandSpec', 'enabled_signal_should_send_YES_while_executing_is_YES_and_allowsConcurrentExecution_is_YES',