Sha256: fd04e9f57b55745f2286e172fad27883eb7e861cec981f128d6e5010acce35c4

Contents?: true

Size: 675 Bytes

Versions: 9

Compression:

Stored size: 675 Bytes

Contents

require "spec_helper"
require "shared/configured"

describe MetricFu::Configuration, "for rcov" do
  it_behaves_like "configured" do
    it "should set rcov run_options" do
      load_metric "rcov"
      expect(
        MetricFu::Metric.get_metric(:rcov).run_options
      ).to eq(

        environment: "test",
        external: nil,
        test_files: Dir["{spec,test}/**/*_{spec,test}.rb"],
        rcov_opts: [
          "--sort coverage",
          "--no-html",
          "--text-coverage",
          "--no-color",
          "--profile",
          "--exclude-only '.*'",
          '--include-file "\Aapp,\Alib"',
          "-Ispec"
        ],
      )
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
metric_fu-4.13.0 spec/metric_fu/metrics/rcov/configuration_spec.rb
fastruby-metric_fu-5.0.0 spec/metric_fu/metrics/rcov/configuration_spec.rb
code_metric_fu-4.14.4 spec/metric_fu/metrics/rcov/configuration_spec.rb
code_metric_fu-4.14.3 spec/metric_fu/metrics/rcov/configuration_spec.rb
code_metric_fu-4.14.2 spec/metric_fu/metrics/rcov/configuration_spec.rb
code_metric_fu-4.14.1 spec/metric_fu/metrics/rcov/configuration_spec.rb
code_metric_fu-4.14.0 spec/metric_fu/metrics/rcov/configuration_spec.rb
metric_fu-4.12.0 spec/metric_fu/metrics/rcov/configuration_spec.rb
metric_fu-4.11.4 spec/metric_fu/metrics/rcov/configuration_spec.rb