Browse files

make bundle && bundle exec rake work so we do not need an explanation…

… of how to run tests
  • Loading branch information...
1 parent d89b363 commit 76352b28ba599fa5cb4a958384f9f0aa42273741 @grosser grosser committed Nov 19, 2012
Showing with 7 additions and 2 deletions.
  1. +2 −0 Gemfile
  2. +3 −0 Rakefile
  3. +2 −2 test/README.md
View
2 Gemfile
@@ -1,3 +1,5 @@
source "http://rubygems.org"
gemspec
+
+gem "rake"
View
3 Rakefile
@@ -0,0 +1,3 @@
+task :default do
+ sh "cd test && ruby test.rb"
+end
View
4 test/README.md
@@ -1,9 +1,9 @@
## Testing
-Run `ruby test.rb`.
+Run `rake` or if you want to avoid bundler `cd test && ruby test.rb`.
This runs Brakeman against full apps in the `apps` directory and checks the results against what is expected.
## Test Generation
-Run `ruby to_test.rb apps/some_app > tests/test_some_app.rb` to generate a test suite with tests for each warning reported.
+Run `cd test && ruby to_test.rb apps/some_app > tests/test_some_app.rb` to generate a test suite with tests for each warning reported.

0 comments on commit 76352b2

Please sign in to comment.