diff options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | Rakefile | 10 |
2 files changed, 7 insertions, 7 deletions
@@ -33,8 +33,8 @@ Finally, run `rake` to build and install the gem locally. Ruby 2D uses a combination of automated tests via [RSpec](http://rspec.info) and manual, interactive tests to verify the correctness of visual, audio, and input functionality. Build the gem and run all automated tests using the `rake` command. Build and run an interactive test in the [`test/`](test/) directory using `rake test:<environment> <name_of_test>`, for example: ```bash -# Run `test/testcard.rb` using the standard Ruby interpreter, MRI (or CRuby) -rake test:mri testcard +# Run `test/testcard.rb` using the standard Ruby interpreter, MRI (CRuby) +rake test:int testcard # Build `test/audio.rb` natively using MRuby and run rake test:native audio @@ -30,8 +30,8 @@ def run_cmd(cmd) system cmd end -def run_mri_test(file) - print_task "Running MRI test: #{file}.rb" +def run_int_test(file) + print_task "Running interpreted test: #{file}.rb" run_cmd "( cd test/ && ruby #{file}.rb )" end @@ -96,10 +96,10 @@ RSpec::Core::RakeTask.new do |t| end namespace :test do - desc "Run MRI test" - task :mri do + desc "Run interpreted test" + task :int do get_args - run_mri_test ARGV[1] + run_int_test ARGV[1] end desc "Run native test" |
