Skip to content

Instantly share code, notes, and snippets.

@yetanotherchris
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yetanotherchris/d2bcb59d8e17ca33e74f to your computer and use it in GitHub Desktop.
Save yetanotherchris/d2bcb59d8e17ca33e74f to your computer and use it in GitHub Desktop.
static void Main(string[] args)
{
Process process = new Process();
process.StartInfo = new ProcessStartInfo(@"C:\Users\chris\Documents\visual studio 2013\Projects\RunNunitTest\packages\NUnit.Runners.2.6.3\tools\nunit-console.exe",
@"D:\projects\roadkill\src\Roadkill.Tests\bin\Debug\Roadkill.Tests.dll " +
"/noxml " +
"/include:Unit");
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.UseShellExecute = false;
process.Start();
int i = 0;
while (!process.StandardOutput.EndOfStream)
{
Console.WriteLine("[{0}] {1}", i++, process.StandardOutput.ReadLine());
}
Console.Read();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment