9

I've written tests using Selenium in NUnit Framework using C# language. I want to associate these tests as part of builds in the TFS. So whenever new build is generated. These tests would be able to run as part of builds and generate/email reports as well.

Mohsin Awan
  • 1,176
  • 2
  • 12
  • 29

1 Answers1

8

Recommend you to use the new build system vNext build. vNext builds are JSON based, and you can plugin tasks built in msbuild, powershell and varied other scripting languages.

About how to integrate NUnit Tests in TFS builds, this blog describes clearly how to do this: Running NUnit Tests in a TFS 2015 Build vNext

Simply summarized as follows:

  1. Add Nuget Package for NUnit Test Adapter
  2. Specify path of custom Test Adapter inside build definition

    • Copying adapters inside Visual Studio TestWindows folder

    • Specify Path to Custom Test Adapter with nunit packages

Some other tutorial for you reference:

xUnit or NUnit with Visual Studio Online Build

Running nUnit and Jasmine.JS unit tests in TFS/VSO vNext build

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62