parent
467ee00f10
commit
2832cc4bb3
@ -1,37 +0,0 @@ |
||||
|
||||
require 'yaml' |
||||
|
||||
namespace :redmine_costs do |
||||
begin |
||||
include DevHelper |
||||
|
||||
def config |
||||
YAML.load_file File.expand_path(File.join(__FILE__, '..', 'cruise.yml')) |
||||
end |
||||
|
||||
desc 'Run unit tests for redmine_costs' |
||||
task :'cruise:unit' do |
||||
run_unit_tests('redmine_costs') |
||||
end |
||||
|
||||
desc 'Run integration tests for redmine_costs' |
||||
task :'cruise:integration' do |
||||
run_integration_tests('redmine_costs') |
||||
end |
||||
|
||||
desc 'Run cruise task for redmine_costs' |
||||
task :cruise do |
||||
run_cruise_task('redmine_costs') |
||||
end |
||||
|
||||
task :'cruise:unit:internal' do |
||||
unit_tests('redmine_picockpit_privacy') |
||||
end |
||||
|
||||
task :'cruise:integration:internal' do |
||||
integration_tests('redmine_picockpit_privacy') |
||||
end |
||||
rescue NameError |
||||
puts "DevTools not present! Cruise Tasks not loaded" |
||||
end |
||||
end |
@ -1,10 +0,0 @@ |
||||
|
||||
--- |
||||
:unit_tests: |
||||
:required_plugins: |
||||
- dev_tools |
||||
- redmine_cucumber |
||||
:tasks: |
||||
- spec:plugins:redmine_costs |
||||
:integration_sets: |
||||
|
@ -1,29 +0,0 @@ |
||||
begin |
||||
require "spec/rake/spectask" |
||||
namespace :spec do |
||||
namespace :plugins do |
||||
desc "Runs the examples for redmine_costs" |
||||
Spec::Rake::SpecTask.new(:redmine_costs) do |t| |
||||
t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""] |
||||
t.spec_files = FileList['vendor/plugins/redmine_costs/spec/**/*_spec.rb'] |
||||
end |
||||
end |
||||
end |
||||
task :spec => "spec:plugins:redmine_costs" |
||||
|
||||
begin |
||||
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:redmine_costs:ci" => ["ci:setup:rspec", "spec:plugins:redmine_costs"] |
||||
rescue LoadError |
||||
puts <<-EOS |
||||
Missing the CI Reporter gem. This is not fatal. |
||||
If you want XML output for the CI, execute |
||||
|
||||
gem install ci_reporter |
||||
|
||||
EOS |
||||
end |
||||
|
||||
rescue LoadError |
||||
end |
Loading…
Reference in new issue