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

Support test settings in MSTest #428

Merged
merged 1 commit into from
May 22, 2014
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
5 changes: 5 additions & 0 deletions src/app/FakeLib/UnitTest/MSTest.fs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ type MSTestParams =
ResultsDir : string
/// Path to the Test Metadata file (.vdmdi) (optional)
TestMetadataPath : string
/// Path to the Test Settings file (.testsettings) (optional)
TestSettingsPath : string
/// Working directory (optional)
WorkingDir : string
/// A timeout for the test runner (optional)
Expand All @@ -43,6 +45,7 @@ let MSTestDefaults =
{ Category = null
ResultsDir = null
TestMetadataPath = null
TestSettingsPath = null
WorkingDir = null
TimeOut = TimeSpan.FromMinutes 5.
ToolPath =
Expand All @@ -62,6 +65,8 @@ let buildMSTestArgs parameters assembly =
new StringBuilder()
|> appendIfNotNull assembly "/testcontainer:"
|> appendIfNotNull parameters.Category "/category:"
|> appendIfNotNull parameters.TestMetadataPath "/testmetadata:"
|> appendIfNotNull parameters.TestSettingsPath "/testsettings:"
|> appendIfNotNull testResultsFile "/resultsfile:"
|> appendIfTrue parameters.NoIsolation "/noisolation"
|> toText
Expand Down