Skip to content

Commit

Permalink
Renames
Browse files Browse the repository at this point in the history
  • Loading branch information
vbfox committed Aug 14, 2018
1 parent 9ac20dd commit 7318071
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/Fake.DotNet.Testing.Expecto/Expecto.fs
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ type Params =
WorkingDirectory = ""
}

type private ResolvedRunMode = | ResolvedDirect | ResolvedDotNet
type private RunMode = | Direct | DotNetCli

let private getRunMode (assembly: string) =
match System.IO.Path.GetExtension(assembly).ToLowerInvariant() with
| ".dll" -> ResolvedDotNet
| ".exe" -> ResolvedDirect
| ".dll" -> DotNetCli
| ".exe" -> Direct
| ext ->
failwithf "Unable to find a way to run expecto test executable with extension %s" ext

Expand All @@ -109,9 +109,9 @@ let private runAssembly expectoParams testAssembly =
then expectoParams.WorkingDirectory else Fake.IO.Path.getDirectory testAssembly
let fileName, argsString =
match runMode with
| ResolvedDotNet ->
| DotNetCli ->
"dotnet", sprintf "\"%s\" %O" testAssembly expectoParams
| ResolvedDirect ->
| Direct ->
testAssembly, string expectoParams
(fun (info: ProcStartInfo) ->
{ info with
Expand Down

0 comments on commit 7318071

Please sign in to comment.