Run the test after mutating
This commit is contained in:
parent
c93f87d282
commit
bd7f0e70e1
1 changed files with 10 additions and 0 deletions
|
|
@ -48,6 +48,15 @@ let ensureBuilt projectPath =
|
||||||
|> Output.throwIfErrored
|
|> Output.throwIfErrored
|
||||||
|> ignore
|
|> ignore
|
||||||
|
|
||||||
|
let runTest projectPath testName =
|
||||||
|
cli {
|
||||||
|
Exec "dotnet"
|
||||||
|
Arguments [ "test"; projectPath; "--filter"; $"FullyQualifiedName={testName}" ]
|
||||||
|
Output(new StreamWriter(Console.OpenStandardOutput()))
|
||||||
|
}
|
||||||
|
|> Command.execute
|
||||||
|
|> ignore
|
||||||
|
|
||||||
let getAssemblyPath projectPath =
|
let getAssemblyPath projectPath =
|
||||||
cli {
|
cli {
|
||||||
Exec "dotnet"
|
Exec "dotnet"
|
||||||
|
|
@ -124,6 +133,7 @@ let main argv =
|
||||||
for mutationCase in getMutationCases projectPath do
|
for mutationCase in getMutationCases projectPath do
|
||||||
printfn "MUTATION\n\n%s" <| mutationCase.Patch
|
printfn "MUTATION\n\n%s" <| mutationCase.Patch
|
||||||
applyPatch mutationCase.Patch
|
applyPatch mutationCase.Patch
|
||||||
|
runTest projectPath mutationCase.TestName
|
||||||
restore ()
|
restore ()
|
||||||
|
|
||||||
0
|
0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue