Sha256: fd3d090aaeeb35f893cbafe980b4fc1e8442f8afd044eea18b6c60f48970abe7

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

# Remove some tasks defined by devtools to redefine them

Rake::Task["spec"].clear
Rake::Task["spec:integration"].clear
Rake::Task["ci:metrics"].clear
Rake::Task["ci"].clear

## Specs
# Difference to Devtools:
# * Acceptance, no integration tests
# * Special Case: ArangoDB needed for Acceptance Tests

desc 'Run all specs'
task :spec => %w[ spec:unit spec:acceptance ]

namespace :spec do
  desc "Run the acceptance tests. Requires ArangoDB to be running."
  RSpec::Core::RakeTask.new(:acceptance_with_running_arangodb) do |spec|
    spec.pattern = "spec/acceptance/*_spec.rb"
  end

  desc "Run the acceptance tests. Requires ArangoDB."
  RSpec::Core::RakeTask.new(:acceptance) do |spec|
    spec.rspec_opts = "--require acceptance/arango_helper.rb"
    spec.pattern = "spec/acceptance/*_spec.rb"
  end

  desc "Run the authentication acceptance tests. Requires ArangoDB."
  RSpec::Core::RakeTask.new(:acceptance_auth) do |spec|
    spec.rspec_opts = "--require acceptance_auth/arango_helper.rb"
    spec.pattern = "spec/acceptance_auth/*_spec.rb"
  end
end

## Metrics
# Differences to Devtools:
# * Do not run mutant and reek, they do not pass yet
# * On the CI, ArangoDB is already running so use the special acceptance task

namespace :ci do
  desc 'Run all metrics except mutant and reek'
  task :metrics => %w[ metrics:coverage spec:integration metrics:yardstick:verify metrics:flog metrics:flay ]
end

desc 'Run all metrics and specs'
task :ci => %w[ spec:unit spec:acceptance_with_running_arangodb ci:metrics ]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ashikawa-core-0.7.2 tasks/adjustments.rake