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

Add test adapter path to vs test params #793

Merged
merged 1 commit into from
May 17, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/app/FakeLib/UnitTest/VSTest.fs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ type VSTestParams =
/// A timeout for the test runner (optional).
TimeOut : TimeSpan
/// Error level for controlling how VSTest failures should break the build (optional).
ErrorLevel : ErrorLevel }
ErrorLevel : ErrorLevel
/// Path to test adapter e.g. xUnit (optional)
TestAdapterPath: string}

/// VSTest default parameters.
let VSTestDefaults =
Expand All @@ -78,7 +80,8 @@ let VSTestDefaults =
| None -> ""
WorkingDir = null
TimeOut = TimeSpan.MaxValue
ErrorLevel = ErrorLevel.Error }
ErrorLevel = ErrorLevel.Error
TestAdapterPath = null }

/// Builds the command line arguments from the given parameter record and the given assemblies.
/// [omit]
Expand All @@ -103,6 +106,7 @@ let buildVSTestArgs (parameters : VSTestParams) assembly =
|> appendIfTrue parameters.ListExecutors "/ListExecutors"
|> appendIfTrue parameters.ListLoggers "/ListLoggers"
|> appendIfTrue parameters.ListSettingsProviders "/ListSettingsProviders"
|> appendIfNotNull parameters.TestAdapterPath "/TestAdapterPath:"
|> toText

/// Runs VSTest command line tool (VSTest.Console.exe) on a group of assemblies.
Expand Down