Sha256: b7de9525c0c259496d943f216390d82e4c5dde7bf12d3c46bd87410f96af586b

Contents?: true

Size: 662 Bytes

Versions: 17

Compression:

Stored size: 662 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new

task :default => :spec
task :test => :spec

def rspec_out_file
  require 'rspec_junit_formatter'
  "-f RspecJunitFormatter -o results.xml"
end

namespace :spec do
  desc "Run all unit and integration tests"
  task :ci do
    rspec_out_file = nil
    sh "bundle exec rspec #{rspec_out_file} spec"
  end

  desc "Run perf tests"
  task :perf do
    rspec_out_file = nil
    sh "bundle exec ruby ./spec/benchmark/perf_test.rb"
  end

  desc "Run all tests and generate coverage xml"
  task :cov do
    sh "bundle exec rspec #{rspec_out_file} spec"
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
nexia_worker_roulette-0.2.9 Rakefile
nexia_worker_roulette-0.2.8 Rakefile
nexia_worker_roulette-0.2.7 Rakefile
nexia_worker_roulette-0.2.6 Rakefile
nexia_worker_roulette-0.2.5 Rakefile
nexia_worker_roulette-0.2.4 Rakefile
nexia_worker_roulette-0.2.3 Rakefile
nexia_worker_roulette-0.2.2 Rakefile
nexia_worker_roulette-0.2.1 Rakefile
nexia_worker_roulette-0.2.0 Rakefile
worker_roulette-0.1.13 Rakefile
worker_roulette-0.1.12 Rakefile
nexia_worker_roulette-0.1.12 Rakefile
nexia_worker_roulette-0.1.11 Rakefile
worker_roulette-0.1.9 Rakefile
worker_roulette-0.1.7 Rakefile
worker_roulette-0.1.6 Rakefile