lib/cuke4nuke/main.rb in cuke4nuke-aslakjo-0.3.4 vs lib/cuke4nuke/main.rb in cuke4nuke-aslakjo-0.3.5
- old
+ new
@@ -31,10 +31,14 @@
end
end
def launch_cuke4nuke_process(step_definitions_dll_path)
cuke4nuke_server_exe = File.expand_path(File.join(File.dirname(__FILE__), '../../dotnet/Cuke4Nuke.Server.exe'))
- command = %{"#{cuke4nuke_server_exe}" -a "#{step_definitions_dll_path}"}
+ command = %{"#{cuke4nuke_server_exe}" -a "#{step_definitions_dll_path}" }
+ config_file_path ="#{step_definitions_dll_path}.config"
+ if File.exist?(config_file_path)
+ command += %{ -c "#{step_definitions_dll_path}.config"}
+ end
process = IO.popen(command, 'r')
@cuke4nuke_server_pid = process.pid
end
def kill_cuke4nuke_process