Sha256: 185cca138d48c8687cbac20f70c56f00ac497eb44496440f0fd378e6ad3d568d

Contents?: true

Size: 649 Bytes

Versions: 90

Compression:

Stored size: 649 Bytes

Contents

# Starts SimpleCov for code coverage.

if ENV["COVERAGE"]
  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

90 entries across 90 versions & 1 rubygems

Version Path
react_on_rails-8.0.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-8.0.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-8.0.0.beta.3 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-8.0.0.beta.2 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-8.0.0.beta.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-7.1.0.beta.3 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-7.0.4 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-7.1.0.beta.2 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-7.0.3 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-7.1.0.beta.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-7.0.2 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-7.0.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-7.0.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-6.10.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-6.10.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-6.9.3 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-6.9.2 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-6.9.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-6.9.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-6.8.2 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb