lib/xcov/manager.rb in xcov-1.2.0 vs lib/xcov/manager.rb in xcov-1.3.0

- old
+ new

@@ -29,10 +29,12 @@ # Run xcov json_report = parse_xccoverage report = generate_xcov_report(json_report) validate_report(report) submit_to_coveralls(report) + tmp_dir = File.join(Xcov.config[:output_directory], 'tmp') + FileUtils.rm_rf(tmp_dir) if File.directory?(tmp_dir) end def parse_xccoverage # Find .xccoverage file test_logs_path = derived_data_path + "Logs/Test/" @@ -41,10 +43,10 @@ unless test_logs_path.directory? && !xccoverage_files.empty? ErrorHandler.handle_error("XccoverageFileNotFound") end # Convert .xccoverage file to json - json_report = Xcov::Core::Parser.parse(xccoverage_files.first) + json_report = Xcov::Core::Parser.parse(xccoverage_files.first, Xcov.config[:output_directory]) ErrorHandler.handle_error("UnableToParseXccoverageFile") if json_report.nil? json_report end