2761: diagnostics testing
[arvados.git] / apps / workbench / test / test_helper.rb
index 260bff043c8cfc10cfc08f3d272835c0be214d51..7f23988837b8ced4d4343b16dc3a1993e68c211e 100644 (file)
@@ -1,4 +1,5 @@
-ENV["RAILS_ENV"] = "test"
+ENV["RAILS_ENV"] = "test" if !ENV["RAILS_ENV"]
+
 unless ENV["NO_COVERAGE_TEST"]
   begin
     require 'simplecov'
@@ -151,4 +152,6 @@ class ApiServerForTests
   end
 end
 
-ApiServerForTests.run
+if ENV["RAILS_ENV"].eql? 'test'
+  ApiServerForTests.run
+end