Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a VSTest module for working with VSTest.Console #648

Merged
merged 1 commit into from
Feb 7, 2015

Conversation

zsims
Copy link
Contributor

@zsims zsims commented Feb 7, 2015

Similar to the existing MSTest module. Handy as VSTest.Console.exe is preferred to MSTest for VS2012+, see https://msdn.microsoft.com/en-us/library/ms182486.aspx

This will only work for >= VS2012 (where VSTest is available).

Working example:

#r "FakeLib.dll"
open Fake
open Fake.VSTest

Target "Test" (fun _ ->
    VSTest (fun p -> 
        { p with
            EnableCodeCoverage = true
            Logger = "trx"
            Framework = "Framework45"
            Platform = "x86"
    }) ["UnitTestProject1.dll"]
)

Run "Test"

Not sure how to tie this in with the FAKE automated tests, suggestions welcome.

@forki
Copy link
Member

forki commented Feb 7, 2015

LGTM. thanks for contributing

forki added a commit that referenced this pull request Feb 7, 2015
Adds a VSTest module for working with VSTest.Console
@forki forki merged commit a47ffe3 into fsprojects:master Feb 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants