Permalink
Browse files

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

…tation

git-svn-id: http://svn.caldersphere.net/svn/main/rubyforge/ci_reporter/trunk@122 b03c2d0b-2f10-0410-a2f9-fc8001506dfa
  • Loading branch information...
1 parent ddc4c09 commit 35308f17db99140aef2a6a9aa5786dce353bdf12 @nicksieger nicksieger committed Aug 29, 2007
Showing with 9 additions and 4 deletions.
  1. +1 −1 History.txt
  2. +5 −0 README.txt
  3. +1 −1 Rakefile
  4. +2 −2 {lib/ci/reporter/rake → }/stub.rake
View
@@ -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
View
@@ -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.
View
@@ -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"]
begin
require 'hoe'
@@ -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'

0 comments on commit 35308f1

Please sign in to comment.