Sha256: 0078c498e9bb0fec36ae0138a055fa3a5dec3b6b7ff6abbb9c29899afb04b753

Contents?: true

Size: 690 Bytes

Versions: 30

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true

# Starts SimpleCov for code coverage.

if ENV["COVERAGE"] == "true"
  require "simplecov"

  # Using a command name prevents results from getting clobbered by other test suites
  example_name = File.basename(File.expand_path("../../../.", __FILE__))
  SimpleCov.command_name(example_name)

  SimpleCov.start("rails") do
    # Consider the entire gem project as the root
    # (typically this will be the folder named "react_on_rails")
    gem_root_path = File.expand_path("../../../../../.", __FILE__)
    root gem_root_path

    # Don't report anything that has "spec" in the path
    add_filter do |src|
      src.filename =~ %r{\/spec\/}
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
react_on_rails-10.1.4 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-10.1.3 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-10.1.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-10.1.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-10.0.2 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-10.0.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-10.0.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.3 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.2 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.0.rc.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.0.beta.12 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.0.beta.11 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.0.beta.10 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.0.beta.9 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.0.beta.8 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.0.beta.7 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.0.beta.6 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-9.0.0.beta.5 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb