Commit 313b8ad8 authored by Marcin Siodelski's avatar Marcin Siodelski Committed by Tomek Mrugalski

[#164] ng_test task uses debug env

Combined ng_test into a single task with using debug flag.
parent a5dda6b8
......@@ -569,14 +569,13 @@ def run_ng_test(progress, watch, browsers)
end
end
desc 'Run unit tests for Angular with headless Chrome browser.'
desc 'Run unit tests for Angular with Chrome browser.'
task :ng_test => [NG] do
run_ng_test("false", "false", "ChromeNoSandboxHeadless")
end
desc 'Run unit tests for Angular with Chrome browser allowing to debug tests.'
task :ng_test_debug => [NG] do
run_ng_test("true", "true", "Chrome")
if ENV['debug'] == "true"
run_ng_test("true", "true", "Chrome")
else
run_ng_test("false", "false", "ChromeNoSandboxHeadless")
end
end
### Docker Tasks #########################
......
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