From e81d32b470cdead1c114b6d1b5b6bda958d6b1ad Mon Sep 17 00:00:00 2001 From: Tom Black Date: Sat, 24 Dec 2016 22:17:34 -0600 Subject: Merge all tests into `test/` directory --- Rakefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index bc22822..fc4cdc1 100644 --- a/Rakefile +++ b/Rakefile @@ -27,8 +27,8 @@ def run_cmd(cmd) end def run_test(file) - print_task "Running tests/#{file}.rb" - system "( cd tests/ ; ruby #{file}.rb )" + print_task "Running test/#{file}.rb" + system "( cd test/ ; ruby #{file}.rb )" end # Tasks @@ -56,7 +56,7 @@ end desc "Run the RSpec tests" RSpec::Core::RakeTask.new do |t| print_task "Running RSpec" - t.pattern = "spec/*spec.rb" + t.pattern = "test/*spec.rb" end desc "Run testcard" @@ -72,15 +72,15 @@ end desc "Run native build test" task :native do print_task "Running native build test" - run_cmd "ruby2d build native tests/testcard.rb" - print_task "Running native tests/testcard.rb" - system "( cd tests/ ; ../build/app )" + run_cmd "ruby2d build native test/testcard.rb" + print_task "Running native test/testcard.rb" + system "( cd test/ ; ../build/app )" end desc "Run web build test" task :web do print_task "Running web build test" - run_cmd "ruby2d build web tests/testcard.rb" + run_cmd "ruby2d build web test/testcard.rb" end desc "Uninstall, build, install, and test" -- cgit v1.2.3