task :default => [:test] desc "Run all tests" task :test => "test:all" namespace :test do desc "Run all tests" task :all => [ "diagnostics", "test:js", "test:rb" ] desc "Display some diagnostics" task :diagnostics do sh %{node --version} sh %{ruby --version} sh %{gem --version} sh %{node bin/cucumber.js --version} sh %{cucumber --version} end desc "Run the features through Cucumber (Ruby) and Aruba" task :rb do sh %{cucumber -p quiet} end desc "Run the features through Cucumber.js and the specs through Jasmine-node" task :js do sh %{npm test} end end