Setup VisualStudio 2013 to run xunit test
First of
all it’s good to setup visual studio to be able to run xunit tests locallyJ The easiest way is to use nuget
references. The basic package is xunit.net package, this has the implementation
of simple xunit tests (Facts). We need data driven tests too (Theory), this is
included in the second package from the picture xunit.net.extensions.
Lastly
download the xunit test runner to visual studio, this is a visual studio
extension which will run the xunit test inside visual studio.
Setup for running on Hosted build server
You need to
include another nuget package which containes the test runner for xunit. This
will discover xunit tests in assemblies and run them.
It is this
package: http://www.nuget.org/packages/xunit.runner.visualstudio/
Nuget
packages are automatically downloaded during the build process to the hosted
build server, we don’t need to do anything.
On the
internet there are lot of tutorials how to push custom assemblies to the build
controller in order to get them to hosted build server. This setup is only
needed if you don’t have the assembly as a nuget reference.
Few links
for manually configure the build controller:
Žádné komentáře:
Okomentovat