c# - Process exits midway. Not completing -



c# - Process exits midway. Not completing -

i have been trying run nunit console app through c# console application run set unit test cases. whats happening of unit test cases start, go halfway , remains incomplete , exits how , starts next unit test case. below code running the nunit console application.

var processargs =string.format(@" /process:separate /run:{0}.{1}.{2} "d:\acceptancetest.dll"" /noshadow /xml:{3} /labels /out:{4}", classnamestring, type.name, testmethod, xmlfeaturefile, txtfeatureoutputfile); process process = null; seek { processstartinfo processstartinfo = null; processstartinfo = new processstartinfo(@"c:\program files (x86)\nunit 2.6.2\bin\nunit-console.exe", processargs) { workingdirectory = @"d:\testoutput", windowstyle = processwindowstyle.hidden, createnowindow = true, errordialog = false, }; // *** run test in nunit here *** process = process.start(processstartinfo); if (process != null) { var hasexited = process.waitforexit(3600000); if (!hasexited) log.debug("wait exit returned before process exited."); } } grab (exception ex) { log.error("error related nunit-console.exe:", ex); } { if (process != null) { process.close(); process.dispose(); } }

any thoughts might going wrong in here? there no errors when inspect logs application.

c# unit-testing process nunit

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -