{"action":"created","issue":{"url":"https://api.github.com/repos/elm-community/elm-test/issues/44","repository_url":"https://api.github.com/repos/elm-community/elm-test","labels_url":"https://api.github.com/repos/elm-community/elm-test/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/elm-community/elm-test/issues/44/comments","events_url":"https://api.github.com/repos/elm-community/elm-test/issues/44/events","html_url":"https://github.com/elm-community/elm-test/issues/44","id":173122270,"number":44,"title":"Idea: Ability to isolate or skip a test","user":{"login":"benansell","id":684667,"avatar_url":"https://avatars.githubusercontent.com/u/684667?v=3","gravatar_id":"","url":"https://api.github.com/users/benansell","html_url":"https://github.com/benansell","followers_url":"https://api.github.com/users/benansell/followers","following_url":"https://api.github.com/users/benansell/following{/other_user}","gists_url":"https://api.github.com/users/benansell/gists{/gist_id}","starred_url":"https://api.github.com/users/benansell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benansell/subscriptions","organizations_url":"https://api.github.com/users/benansell/orgs","repos_url":"https://api.github.com/users/benansell/repos","events_url":"https://api.github.com/users/benansell/events{/privacy}","received_events_url":"https://api.github.com/users/benansell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-25T06:15:52Z","updated_at":"2016-10-12T17:58:26Z","closed_at":null,"body":"Often it is convenient to ether:\r\n* ignore one or more tests\r\n* only run a few tests\r\n\r\nCurrently if you can use a well placed and crafted Test.filter can be used to achieve both. However, this can be initially non-obvious to new users and tricky to quickly get right without always reverting to changing the test description. In addition, there is no indication in the output that some tests have been skipped - which can become an issue over time on larger projects without a method of reporting on the number of skipped tests.\r\n\r\nI was wondering if there was a reason that the following syntax is not supported:\r\n\r\n```elm\r\n    describe \"Troublesome feature\"\r\n        [ test \"normal test\" <|\r\n            \\() -> Expect.pass\r\n        , ignore test \"ignored because I always fail!\" <|\r\n            \\() ->\r\n                Expect.fail \"Ignored test failure\"\r\n        ....\r\n       ]\r\n```\r\n\r\nI think this would provide a quick convenient way for people to ignore tests, while providing a mechanism by which failures can be reported at the end of the test run:\r\n\r\n```\r\nPassed:  1\r\nFailed:  0\r\nIgnored: 1\r\n``` \r\nCI builds can then be setup to monitor these output's / statistics over time.\r\n\r\n\r\nConversely it would also be nice to have the opposite with the same convenience, e.g. by adding \"only\" in front of a test / describe - that would then cause the test runner to just run tests / describes that have an only prefix, and show all the other tests as ignored in the output.\r\n\r\nI have add a go at adding the ignore part to the code to see what the impact would be [here] (https://github.com/benansell/elm-test/tree/add-ignore) - note this currently does not work with fuzz tests.\r\n\r\nWhat are peoples thoughts on this change to the API? \r\n"},"comment":{"url":"https://api.github.com/repos/elm-community/elm-test/issues/comments/253288993","html_url":"https://github.com/elm-community/elm-test/issues/44#issuecomment-253288993","issue_url":"https://api.github.com/repos/elm-community/elm-test/issues/44","id":253288993,"user":{"login":"benansell","id":684667,"avatar_url":"https://avatars.githubusercontent.com/u/684667?v=3","gravatar_id":"","url":"https://api.github.com/users/benansell","html_url":"https://github.com/benansell","followers_url":"https://api.github.com/users/benansell/followers","following_url":"https://api.github.com/users/benansell/following{/other_user}","gists_url":"https://api.github.com/users/benansell/gists{/gist_id}","starred_url":"https://api.github.com/users/benansell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benansell/subscriptions","organizations_url":"https://api.github.com/users/benansell/orgs","repos_url":"https://api.github.com/users/benansell/repos","events_url":"https://api.github.com/users/benansell/events{/privacy}","received_events_url":"https://api.github.com/users/benansell/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T17:58:26Z","updated_at":"2016-10-12T17:58:26Z","body":"@mgold feel free to close this issue."}}
{"actor":{"display_login":"benansell"}}