Sha256: 492f344f4fe0bbc05783e36fd6d763b37372682cfe7abc86f569b79bf1015258

Contents?: true

Size: 1.41 KB

Versions: 45

Compression:

Stored size: 1.41 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

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

  task all: [:unit, :acceptance]
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, 'spec:acceptance', :rubocop]

Version data entries

45 entries across 45 versions & 3 rubygems

Version Path
resync-client-0.4.5 Rakefile
resync-0.4.4 Rakefile
resync-client-0.4.4 Rakefile
resync-0.4.3 Rakefile
resync-client-0.4.3 Rakefile
resync-client-0.4.2 Rakefile
resync-0.4.2 Rakefile
xml-mapping_extensions-0.3.4 Rakefile
xml-mapping_extensions-0.3.3 Rakefile
xml-mapping_extensions-0.3.2 Rakefile
resync-client-0.4.1 Rakefile
resync-0.4.1 Rakefile
xml-mapping_extensions-0.3.1 Rakefile
resync-client-0.4.0 Rakefile
resync-0.4.0 Rakefile
xml-mapping_extensions-0.3.0 Rakefile
xml-mapping_extensions-0.2.1 Rakefile
xml-mapping_extensions-0.2.0 Rakefile
resync-client-0.3.5 Rakefile
resync-0.3.4 Rakefile