diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2011-07-09 18:12:39 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2011-07-09 18:12:39 +0200 |
commit | 977deaa1f86bd40a2cd0121e1518611087f2ddcc (patch) | |
tree | 35c1b044cdf50ca681e4c8c32a8a066f55789860 | |
parent | 8eed7f3854be44f83aaa6a50e40cda62da942a39 (diff) | |
download | coderay-977deaa1f86bd40a2cd0121e1518611087f2ddcc.tar.gz |
automatically download scanner test suite (closes issue #128)
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | rake_tasks/test.rake | 11 |
2 files changed, 12 insertions, 4 deletions
@@ -1,4 +1,5 @@ +Gemfile.lock +pkg test/executable/source.rb.html test/executable/source.rb.json -pkg -Gemfile.lock +test/scanners diff --git a/rake_tasks/test.rake b/rake_tasks/test.rake index 1140062..e09d91d 100644 --- a/rake_tasks/test.rake +++ b/rake_tasks/test.rake @@ -18,9 +18,16 @@ namespace :test do ruby './test/unit/suite.rb' end + scanner_suite = './test/scanners/suite.rb' + task scanner_suite do + puts 'Scanner tests not found; downloading from Subversion...' + sh 'svn co http://svn.rubychan.de/coderay-scanner-tests/trunk/ test/scanners/' + puts 'Finished.' + end + desc 'run all scanner tests' - task :scanners do - ruby './test/scanners/suite.rb' + task :scanners => scanner_suite do + ruby scanner_suite end namespace :scanner do |