Skip to content

Integrating Tests with Automated Builds

Jon Wagner edited this page Feb 18, 2013 · 1 revision

Integrating Tests with Automated Builds

Once you have a bunch of test scripts, you will want to run them as a batch as part of your automated build process. You do this with Invoke-Tests. Generally, you will want to do three things:

  • Output the log to the console so you can watch the results or read the failing cases.
  • Output an NUnit-compatible XML file so the build tool can analyze the results.
  • Output an exit code so the build tool knows the process failed.

So you will probably want this:

Invoke-Tests yourtestpath -NUnit testresults.xml -ExitCode