Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move stub.rake to top directory, and update release notes and documen…


git-svn-id: b03c2d0b-2f10-0410-a2f9-fc8001506dfa
  • Loading branch information...
commit 35308f17db99140aef2a6a9aa5786dce353bdf12 1 parent ddc4c09
@nicksieger nicksieger authored
2  History.txt
@@ -4,7 +4,7 @@
trunk which passes a Spec::DSL::Description instead of a string
- Fix broken spec due to pending feature introduced in recent RSpec
- Fix compatibility for JRuby
-- Add stub.rake file as another way to wrap existing Rakefile
+- Add stub.rake file as another way to wrap existing Rakefile, with note in README
== 1.3.3
5 README.txt
@@ -33,6 +33,11 @@ Report files are written, by default, to the <code>test/reports</code> or <code>
== Advanced Usage
+If you don't have control over the Rakefile or don't want to modify it, CI::Reporter has a substitute rake file that you can specify on the command-line. It assumes that the main project rake file is called +Rakefile+ and lives in the current directory. Run like so:
+ rake -f GEM_PATH/stub.rake ci:setup:testunit test
+ rake -f GEM_PATH/stub.rake ci:setup:rspec spec
If for some reason you can't use the above technique to inject CI::Reporter (e.g., you're not using Rake), you'll have to do one of these:
1. If you're using <code>Test::Unit</code>, ensure the <code>ci/reporter/rake/test_unit_loader.rb</code> file is loaded or required at some point before the tests are run.
2  Rakefile
@@ -1,7 +1,7 @@
require 'spec/rake/spectask'
MANIFEST = FileList["History.txt", "Manifest.txt", "README.txt", "LICENSE.txt", "Rakefile",
- "lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake"]
+ "*.rake", "lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake"]
require 'hoe'
4 lib/ci/reporter/rake/stub.rake → stub.rake
@@ -8,6 +8,6 @@
# rake -f /path/to/ci_reporter/lib/ci/reporter/rake/stub.rake ci:setup:rspec default
-load File.dirname(__FILE__) + '/rspec.rb'
-load File.dirname(__FILE__) + '/test_unit.rb'
+load File.dirname(__FILE__) + '/lib/ci/reporter/rake/rspec.rb'
+load File.dirname(__FILE__) + '/lib/ci/reporter/rake/test_unit.rb'
load 'Rakefile'
Please sign in to comment.
Something went wrong with that request. Please try again.