Rakefile in conjur-api-4.20.1 vs Rakefile in conjur-api-4.21.0

- old
+ new

@@ -1,26 +1,25 @@ #!/usr/bin/env rake require "bundler/gem_tasks" require "yard" +require 'ci/reporter/rake/rspec' +require 'cucumber' +require 'cucumber/rake/task' +require 'rspec/core/rake_task' -begin - require 'rspec/core/rake_task' - RSpec::Core::RakeTask.new(:spec) do |t| - t.rspec_opts = '--order rand' - end -rescue LoadError - $stderr.puts "RSpec Rake tasks not available in environment #{ENV['RACK_ENV']}" -end - +RSpec::Core::RakeTask.new :spec +Cucumber::Rake::Task.new :features YARD::Rake::YardocTask.new(:yard) -task :jenkins do +task :jenkins => ['ci:setup:rspec', :spec] do if ENV['BUILD_NUMBER'] File.write('build_number', ENV['BUILD_NUMBER']) end - require 'ci/reporter/rake/rspec' - Rake::Task["ci:setup:rspec"].invoke - Rake::Task["spec"].invoke + require 'fileutils' + FileUtils.rm_rf 'features/reports' + Cucumber::Rake::Task.new do |t| + t.cucumber_opts = "--tags ~@real-api --format pretty --format junit --out features/reports" + end.runner.run Rake::Task["yard"].invoke end -task default: :spec +task default: [:spec, :features]