Sha256: 0215891b4057b788e2fb936f5a100bf74bb03a117343ed404987b4533b1cb64d

Contents?: true

Size: 1.15 KB

Versions: 49

Compression:

Stored size: 1.15 KB

Contents

# ------------------------------------------------------------
# RSpec

require 'rspec/core'
require 'rspec/core/rake_task'

namespace :spec do

  desc 'Run all unit tests'
  RSpec::Core::RakeTask.new(:unit) do |task|
    task.rspec_opts = %w(--color --format documentation --order default)
    task.pattern = 'unit/**/*_spec.rb'
  end

  task all: [:unit]
end

desc 'Run all tests'
task spec: 'spec:all'

# ------------------------------------------------------------
# Coverage

desc 'Run all unit tests with coverage'
task :coverage do
  ENV['COVERAGE'] = 'true'
  Rake::Task['spec:unit'].execute
end

# ------------------------------------------------------------
# RuboCop

require 'rubocop/rake_task'
RuboCop::RakeTask.new

# ------------------------------------------------------------
# TODOs

desc 'List TODOs (from spec/todo.rb)'
RSpec::Core::RakeTask.new(:todo) do |task|
  task.rspec_opts = %w(--color --format documentation --order default)
  task.pattern = 'todo.rb'
end

# ------------------------------------------------------------
# Defaults

desc 'Run unit tests, check test coverage, run acceptance tests, check code style'
task default: [:coverage, :rubocop]

Version data entries

49 entries across 49 versions & 5 rubygems

Version Path
stash-sword-0.1.6 Rakefile
datacite-mapping-0.2.5 Rakefile
stash-sword-0.1.5 Rakefile
stash-sword-0.1.4 Rakefile
datacite-mapping-0.2.4 Rakefile
datacite-mapping-0.2.3 Rakefile
datacite-mapping-0.2.2 Rakefile
datacite-mapping-0.2.1 Rakefile
datacite-mapping-0.2.0 Rakefile
datacite-mapping-0.1.17.2 Rakefile
stash-sword-0.1.3 Rakefile
config-factory-0.0.9 Rakefile
datacite-mapping-0.1.17.1 Rakefile
datacite-mapping-0.1.17 Rakefile
datacite-mapping-0.1.16 Rakefile
stash-sword-0.1.2 Rakefile
stash-sword-0.1.1 Rakefile
stash-sword-0.1.0 Rakefile
type_is_enum-0.2.0 Rakefile
datacite-mapping-0.1.15 Rakefile