SpecFlow+ And AppVeyor
Note: General information on AppVeyor can be found here.
To configure your AppVeyor build process to execute your test using SpecFlow+ Runner:
- Create a new
appveyor.ymlfile or open your existing file.
- Add the following
before_buildsection to restore the NuGet packages:
before_build: - appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe - appveyor DownloadFile https://raw.githubusercontent.com/appveyor/ci/master/scripts/nuget-restore.cmd - nuget-restore MyProject.sln
MyProject.sln with the full path to your solution, relative to the location of the appveyor.yml file.
3. Add the following
test_script section to execute the tests and generate the test output for AppVeyor:
test_script: - ps: vstest.console /logger:Appveyor "AssemblyPath\MyAssembly.dll" /TestAdapterPath:"PackagesPath\packages"
AssemblyPath with the path to your assembly and replace
MyAssembly.dll with the name of your assembly.
PackagesPath with the path to the packages folder of your solution.
appveyor.yml and use the file to build your application with AppVeyor.
A sample project is available here.