{"action":"created","issue":{"url":"https://api.github.com/repos/feuerbach/tasty/issues/239","repository_url":"https://api.github.com/repos/feuerbach/tasty","labels_url":"https://api.github.com/repos/feuerbach/tasty/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/feuerbach/tasty/issues/239/comments","events_url":"https://api.github.com/repos/feuerbach/tasty/issues/239/events","html_url":"https://github.com/feuerbach/tasty/issues/239","id":406585452,"node_id":"MDU6SXNzdWU0MDY1ODU0NTI=","number":239,"title":"Pattern Language Question - How to filter on test substring when running from stack?","user":{"login":"theGhostJW","id":3053204,"node_id":"MDQ6VXNlcjMwNTMyMDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3053204?v=4","gravatar_id":"","url":"https://api.github.com/users/theGhostJW","html_url":"https://github.com/theGhostJW","followers_url":"https://api.github.com/users/theGhostJW/followers","following_url":"https://api.github.com/users/theGhostJW/following{/other_user}","gists_url":"https://api.github.com/users/theGhostJW/gists{/gist_id}","starred_url":"https://api.github.com/users/theGhostJW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theGhostJW/subscriptions","organizations_url":"https://api.github.com/users/theGhostJW/orgs","repos_url":"https://api.github.com/users/theGhostJW/repos","events_url":"https://api.github.com/users/theGhostJW/events{/privacy}","received_events_url":"https://api.github.com/users/theGhostJW/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2019-02-05T00:52:05Z","updated_at":"2019-02-08T05:40:02Z","closed_at":"2019-02-07T23:37:04Z","author_association":"NONE","body":"Hi,\r\nRunning tasty test on Stack / Windows:\r\n\r\nI have a test called ```hprop_fail_log_protocol_tc_round_trip```\r\n\r\nThe following tasty versions are in use\r\n```\r\n- tasty-1.2@sha256:0d08fbcdda8914c9c8abda8ac212e3209f3b5b86cae01724d0398bcf0c8691d4\r\n- tasty-hedgehog-0.2.0.0@sha256:83a8b777fa472040979e44dba43c32441f55d5ddb9641a4d53deee4b0e09fa34\r\n- tasty-hunit-0.10.0.1@sha256:b8d274e67e3176df234e4f3536e9e000eaf947a12b3dd31052301da98a2574de\r\n- tasty-discover-4.2.1@sha256:cd474a555cf524a82a294127588d91e7d93802c5fa276ea08b4f1f2bf6c37180\r\n```\r\n\r\nfrom PoweshellI can easily filter on \"fail\" in the test name as follows:\r\n\r\n```bash\r\n>> stack test --fast --ta \"-p \"\"fail\"\" \" *> c:\\temp\\Outputfile.txt\r\n```\r\n... and the expected tests run but I am having issues filtering on a test containing \"fail_log\":\r\n\r\n```bash\r\n>> stack test --fast --ta \"-p \"\"fail_log\"\" \" *> c:\\temp\\Outputfile.txt\r\n\r\nAll 0 tests passed (0.00s)\r\n\r\n>>  stack test --fast --ta \"-p \"\"/fail_log/\"\" \" *> c:\\temp\\Outputfile.txt\r\n\r\nAll 0 tests passed (0.00s)\r\n\r\n>> stack test --fast --ta \"-p \"/\"fail_log\"/\" \" *> c:\\temp\\Outputfile.txt\r\n\r\nstack : Error parsing targets: Directory not found: /fail_log/ \r\n\r\n>> stack test --fast --ta \"-p \"\"//fail_log//\"\" \" *> c:\\temp\\Outputfile.txt\r\n\r\np: Could not parse pattern\r\n\r\n>> stack test --fast --ta \"-p \"//\"fail_log\"//\" \" *> c:\\temp\\Outputfile.txt\r\n\r\nstack : Error parsing targets: Directory not found: //fail_log// \r\n\r\n>> stack test --fast --ta \"-p \"\"$NF ~ fail_log\"\" \" *> c:\\temp\\Outputfile.txt\r\n\r\nstack : The following errors occurred while parsing the build targets:\r\n- Directory not found: ~\r\n- Directory not found: fail_log \r\n\r\n```\r\nWhat is the correct syntax? \r\n"},"comment":{"url":"https://api.github.com/repos/feuerbach/tasty/issues/comments/461696878","html_url":"https://github.com/feuerbach/tasty/issues/239#issuecomment-461696878","issue_url":"https://api.github.com/repos/feuerbach/tasty/issues/239","id":461696878,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MTY5Njg3OA==","user":{"login":"theGhostJW","id":3053204,"node_id":"MDQ6VXNlcjMwNTMyMDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3053204?v=4","gravatar_id":"","url":"https://api.github.com/users/theGhostJW","html_url":"https://github.com/theGhostJW","followers_url":"https://api.github.com/users/theGhostJW/followers","following_url":"https://api.github.com/users/theGhostJW/following{/other_user}","gists_url":"https://api.github.com/users/theGhostJW/gists{/gist_id}","starred_url":"https://api.github.com/users/theGhostJW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theGhostJW/subscriptions","organizations_url":"https://api.github.com/users/theGhostJW/orgs","repos_url":"https://api.github.com/users/theGhostJW/repos","events_url":"https://api.github.com/users/theGhostJW/events{/privacy}","received_events_url":"https://api.github.com/users/theGhostJW/received_events","type":"User","site_admin":false},"created_at":"2019-02-08T05:40:02Z","updated_at":"2019-02-08T05:40:02Z","author_association":"NONE","body":"Turns out the correct syntax for Powershell is:\r\n\r\n```stack test --fast --ta '-p \\\"fail log\\\"'```\r\n\r\nhttps://stackoverflow.com/a/54585452/5589037"}}
{"actor":{"display_login":"theGhostJW"}}