Sha256: bbf0810717470e54cc9d401b4cdc9e9e38a93e5bd7a094827a5ed24b6af9a431

Contents?: true

Size: 681 Bytes

Versions: 32

Compression:

Stored size: 681 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("../..", __dir__))
  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("../../../..", __dir__)
    root gem_root_path

    # Don't report anything that has "spec" in the path
    add_filter do |src|
      src.filename.include?("/spec/")
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
react_on_rails-14.1.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-14.1.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-14.1.0.rc.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-15.0.0.alpha.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-14.0.5 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-14.0.4 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-14.0.3 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-14.0.2 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-14.0.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.4.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.3.5 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.3.4 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.3.3 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.3.2 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.3.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.3.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.2.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.1.0 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.0.2 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
react_on_rails-13.0.1 lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb