Skip to content

Commit

Permalink
Move stub.rake to top directory, and update release notes and documen…
Browse files Browse the repository at this point in the history
…tation

git-svn-id: http://svn.caldersphere.net/svn/main/rubyforge/ci_reporter/trunk@122 b03c2d0b-2f10-0410-a2f9-fc8001506dfa
  • Loading branch information
nicksieger committed Aug 29, 2007
1 parent ddc4c09 commit 35308f1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion History.txt
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions README.txt
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion 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"]

begin
require 'hoe'
Expand Down
4 changes: 2 additions & 2 deletions lib/ci/reporter/rake/stub.rake → stub.rake
Expand Up @@ -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.