Skip to content

Commit

Permalink
Merge pull request #428 from dungpa/mstest-settings
Browse files Browse the repository at this point in the history
Support test settings in MSTest
  • Loading branch information
forki committed May 22, 2014
2 parents 3cbdc61 + 939ad8d commit d334345
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit d334345

Please sign in to comment.