Commit f073afbf by Christine Lytwynec

adding prereq installation to js test tasks prereqs

parent e0deca26
...@@ -60,7 +60,7 @@ end ...@@ -60,7 +60,7 @@ end
namespace :'test:js' do namespace :'test:js' do
desc "Run the JavaScript tests and print results to the console" desc "Run the JavaScript tests and print results to the console"
task :run, [:env] => [:clean_test_files, JS_REPORT_DIR] do |t, args| task :run, [:env] => [:clean_test_files, JS_REPORT_DIR, :install_node_prereqs] do |t, args|
compile_coffeescript() compile_coffeescript()
if args[:env].nil? if args[:env].nil?
...@@ -71,7 +71,7 @@ namespace :'test:js' do ...@@ -71,7 +71,7 @@ namespace :'test:js' do
end end
desc "Run the JavaScript tests in your default browser" desc "Run the JavaScript tests in your default browser"
task :dev, [:env] => [:clean_test_files] do |t, args| task :dev, [:env] => [:clean_test_files, :install_node_prereqs] do |t, args|
compile_coffeescript() compile_coffeescript()
if args[:env].nil? if args[:env].nil?
...@@ -83,7 +83,7 @@ namespace :'test:js' do ...@@ -83,7 +83,7 @@ namespace :'test:js' do
end end
desc "Run all JavaScript tests and collect coverage information" desc "Run all JavaScript tests and collect coverage information"
task :coverage => [:clean_reports_dir, :clean_test_files, JS_REPORT_DIR] do task :coverage => [:clean_reports_dir, :clean_test_files, JS_REPORT_DIR, :install_node_prereqs] do
compile_coffeescript() compile_coffeescript()
js_test_tool(nil, 'run', true) js_test_tool(nil, 'run', true)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment