-
Notifications
You must be signed in to change notification settings - Fork 0
MSTest Task
The MSTest task is designed to run tests written with the test framework integrated into Microsoft Visual Studio. This test framework is commonly referred to as MSTest.
Because the MsTest executable location varies between versions of Visual Studio and platform (x86 / x64) it is necessary to specify the location of mstest.exe. This is done by setting the 'command' instance variable of the configuration object. In addition to command, the assemblies variable must also be set to specify the DLL(s) which include MSTest tests.
For example:
desc "MSTest Test Runner Example"
mstest :mstest do |mstest|
mstest.command = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe"
mstest.assemblies "output/YourProject.Tests.dll"
end
Note that MStest is installed to the following locations by default:
- VS2008 / x86: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe
- VS2008 / x64: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe
- VS2010 / x86: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe
- VS2010 / x64: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe
This task supports additional command line options, including a .parameters collection for passing in options that are not directly supported. For more information, see the commandline task options documentation. MSDN has good documentation of all the command-line options for MSTest.
- Build-Server Integration
- Command Line Task Options
- Configuration
- Custom Tasks
- Logging Options
- Sample Usages
- Task Arguments and Rakefile Parameters
- YAML Configuration
- ASP.NET Compiler - ASP.Net website compiler
- Assembly Info Generator - generate assembly info dynamically
- CSC - C# compiler
- Exec - Execute arbitrary cmd
- Fluent Migrator - Run FluentMigrator on migration library
- ILMerge - Merge dll/exe-s together
- MSBuild and XBuild - Compile a .sln-file or a MsBuild xml-file
- MSpec - Test using MSpec (machine.specifications)
- MSTest - Test using Microsoft Test Framework
- NAnt - Run a NAnt script
- NChurn - Calculate per-file churn
- NCover Console - Run NCover for tests/library
- NCover Reports - Generate a report from a coverage run
- NDepend - Run NDepend to check static code metrics
- NuGet Install - Install NuGet packages
- NuGet Pack - Create NuGet packages
- NuGet Push - Push NuGet packages to official MS repo
- NuGet Publish - Publish NuGet packages
- NUnit - Test using NUnit
- NuSpec - Generate a NuSpec file
- Output - File copying and template expansion
- PLink - SSH into a remote computer and run a command
- SQLCmd - Run a SQL command as a part of your build process
- UnZip - Unzip a directory
- XBuild - Run XBuild (will be merged into MsBuild)
- XUnit - Test using XUnit
- Zip - Zip a directory or files
- Edit the Wiki Locally - How to edit the wiki without using Github's interface
- How to Build Albacore
- How to Contribute