Sha256: 311f4b31efbb8c607b9c732befa363e141683492c0a8fdf3b63b6557a5ebf26d
Contents?: true
Size: 912 Bytes
Versions: 10
Compression:
Stored size: 912 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper') require 'json' describe Slather::CoverageService::GutterJsonOutput do let(:fixtures_project) do proj = Slather::Project.open(FIXTURES_PROJECT_PATH) proj.build_directory = TEMP_DERIVED_DATA_PATH proj.input_format = "profdata" proj.coverage_service = "gutter_json" proj.configure proj end describe '#coverage_file_class' do it "should return CoverageFile" do expect(fixtures_project.send(:coverage_file_class)).to eq(Slather::ProfdataCoverageFile) end end describe '#post' do it "should print out the coverage for each file, and then total coverage" do fixtures_project.post fixture_json = File.read(FIXTURES_JSON_PATH) current_json = File.read('.gutter.json') expect(current_json).to be_json_eql(fixture_json) File.unlink('.gutter.json') end end end
Version data entries
10 entries across 10 versions & 1 rubygems