I need to pass the string "fail log" as a tasty pattern argument when running tasty tests out of stack.
This is quite straight forward in bash:
PS C:\Pyrethrum> stack test --fast --ta "-p \"fail log\""
But trying to achieve the same using Powershell is driving me nuts:
PS C:\Pyrethrum> stack test --fast --ta "-p ""fail"" "
works (runs tests) when there is no space
PS C:\Pyrethrum> stack test --fast --ta "-p ""fail log"" "
Error parsing targets: Directory not found: log
PS C:\Pyrethrum> stack test --fast --ta "-p `"fail log`""
tries install a package called log
PS C:\Pyrethrum> stack test --fast --ta "-p \"fail log\""
option --ta: unterminated string: endOfInput
PS C:\Pyrethrum> stack test --fast --ta "-p /fail log/ "
... builds but pattern needs quotes
pyrethrum-0.1.0.0: test (suite: pyrethrum-test, args: -p /fail log/)
option -p: Could not parse pattern
What is the correct command line to get this to run in Powershell ?