OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/tasks/spec.rake

26 lines
1.1 KiB

begin
require "spec/rake/spectask"
namespace :spec do
namespace :plugins do
desc "Runs the examples for reporting_engine"
Spec::Rake::SpecTask.new(:reporting_engine) do |t|
t.spec_opts = ['--options', "\"#{Rails.root}/spec/spec.opts\""]
t.spec_files = FileList['vendor/plugins/reporting_engine/spec/**/*_spec.rb']
end
desc "Runs the examples for reporting_engine"
Spec::Rake::SpecTask.new(:"reporting_engine:rcov") do |t|
t.spec_opts = ['--options', "\"#{Rails.root}/spec/spec.opts\""]
t.spec_files = FileList['vendor/plugins/reporting_engine/spec/**/*_spec.rb']
t.rcov = true
t.rcov_opts = ['-x', "\.rb,spec", '-i', "reporting_engine/app/,redmine_reporting/lib/"]
end
end
end
task :spec => "spec:plugins:reporting_engine"
require 'ci/reporter/rake/rspec' # use this if you're using RSpec
require 'ci/reporter/rake/test_unit' # use this if you're using Test::Unit
task :"spec:plugins:reporting_engine:ci" => ["ci:setup:rspec", "spec:plugins:redmine_reporting"]
rescue LoadError
end