Sha256: f93b24934b87a3a0c290bbaa038535d296cf023c594ea45c6f108c29e05ad567
Contents?: true
Size: 924 Bytes
Versions: 3
Compression:
Stored size: 924 Bytes
Contents
require 'rspec/core/rake_task' $REPO_ROOT = File.dirname(__FILE__) $LOAD_PATH.unshift(File.join($REPO_ROOT, 'lib')) $VERSION = ENV['VERSION'] || File.read(File.join($REPO_ROOT, 'VERSION')).strip Dir.glob('**/*.rake').each do |task_file| load task_file end task 'test:coverage:clear' do sh("rm -rf #{File.join($REPO_ROOT, 'coverage')}") end desc 'Runs unit tests' RSpec::Core::RakeTask.new do |t| t.rspec_opts = "-I #{$REPO_ROOT}/lib -I #{$REPO_ROOT}/spec --tag ~integration" t.pattern = "#{$REPO_ROOT}/spec" end task :spec => 'test:coverage:clear' desc 'Runs integration tests' RSpec::Core::RakeTask.new('spec:integration') do |t| t.rspec_opts = "-I #{$REPO_ROOT}/lib -I #{$REPO_ROOT}/spec --tag integration" t.pattern = "#{$REPO_ROOT}/spec" end desc 'Runs unit and integration tests' task 'test' => [:spec, 'spec:integration'] task :default => :spec task 'release:test' => [:spec, 'spec:integration']
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aws-sessionstore-dynamodb-2.2.0 | Rakefile |
aws-sessionstore-dynamodb-2.1.0 | Rakefile |
aws-sessionstore-dynamodb-2.0.1 | Rakefile |