Permalink
Browse files

Add ci-reporter task to generate test reports in junit xml format

Change-Id: Idd2c7cd9c0fc44aa3786d7e2f6aa140c1102a8ae
  • Loading branch information...
1 parent c27daa0 commit d883e55fd6b3dfde8c29532125818836c2731e95 @parikhkc parikhkc committed Dec 22, 2011
Showing with 33 additions and 0 deletions.
  1. +9 −0 cloud_controller/Rakefile
  2. +8 −0 dea/Rakefile
  3. +8 −0 health_manager/Rakefile
  4. +8 −0 router/Rakefile
@@ -1,13 +1,22 @@
require File.expand_path('../config/application', __FILE__)
+require 'ci/reporter/rake/rspec'
+
CloudController::Application.load_tasks
Rake.application.instance_eval do
%w[test test:recent test:uncommitted].each {|n| @tasks.delete(n) }
end
+desc "Run specs producing results for CI"
+task "ci" => ["ci:spec"]
+
task :spec => :install_development_bundle
task :install_development_bundle do
Bundler.with_clean_env do
system "bundle install --local --without production"
end
end
+
+namespace :ci do
+ task "spec" => ["ci:setup:rspec", "^spec"]
+end
View
@@ -1,11 +1,15 @@
require 'rake'
+require 'ci/reporter/rake/rspec'
desc "Run specs"
task "spec" => ["bundler:install:test", "test:spec"]
desc "Run specs using RCov"
task "spec:rcov" => ["bundler:install:test", "test:spec:rcov"]
+desc "Run specs producing results for CI"
+task "ci" => ["ci:spec"]
+
namespace "bundler" do
desc "Install gems"
task "install" do
@@ -37,3 +41,7 @@ namespace "test" do
sh("cd spec && rake spec:rcov")
end
end
+
+namespace :ci do
+ task "spec" => ["ci:setup:rspec", "^spec"]
+end
View
@@ -1,5 +1,6 @@
ENV["BUNDLE_GEMFILE"] = File.expand_path("../../cloud_controller/Gemfile", __FILE__)
require 'rake'
+require 'ci/reporter/rake/rspec'
desc "Run specs"
@@ -17,6 +18,9 @@ task "prepare_test_db" do
end
end
+desc "Run specs producing results for CI"
+task "ci" => ["ci:spec"]
+
desc "Run specs using RCov"
task "spec:rcov" => ["bundler:install:test", "test:spec:rcov"]
@@ -51,3 +55,7 @@ namespace "test" do
sh("cd spec && rake spec:rcov")
end
end
+
+namespace :ci do
+ task "spec" => ["ci:setup:rspec", "^spec"]
+end
View
@@ -1,4 +1,5 @@
require 'rake'
+require 'ci/reporter/rake/rspec'
desc "Run specs"
task "spec" => ["bundler:install:test", "test:spec"]
@@ -14,6 +15,9 @@ task "ci" do
end
end
+desc "Run specs producing results for CI"
+task "ci-report" => ["ci:spec"]
+
desc "Run specs using RCov"
task "spec:rcov" => ["bundler:install:test", "test:spec:rcov"]
@@ -53,3 +57,7 @@ namespace "test" do
sh("cd spec && rake spec:rcov")
end
end
+
+namespace :ci do
+ task "spec" => ["ci:setup:rspec", "^spec"]
+end

0 comments on commit d883e55

Please sign in to comment.