mirror of
https://github.com/discourse/discourse.git
synced 2026-08-13 06:25:11 -05:00
Add smoke test script that runs in chrome headless.
This commit is contained in:
@@ -31,7 +31,15 @@ task "smoke:test" do
|
||||
end
|
||||
|
||||
results = ""
|
||||
IO.popen("#{phantom_path} #{Rails.root}/spec/phantom_js/smoke_test.js #{url}").each do |line|
|
||||
|
||||
command =
|
||||
if ENV["USE_CHROME"]
|
||||
"node #{Rails.root}/test/smoke_test.js #{url}"
|
||||
else
|
||||
"#{phantom_path} #{Rails.root}/spec/phantom_js/smoke_test.js #{url}"
|
||||
end
|
||||
|
||||
IO.popen(command).each do |line|
|
||||
puts line
|
||||
results << line
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user