{"action":"created","issue":{"url":"https://api.github.com/repos/behave/behave/issues/715","repository_url":"https://api.github.com/repos/behave/behave","labels_url":"https://api.github.com/repos/behave/behave/issues/715/labels{/name}","comments_url":"https://api.github.com/repos/behave/behave/issues/715/comments","events_url":"https://api.github.com/repos/behave/behave/issues/715/events","html_url":"https://github.com/behave/behave/issues/715","id":393044049,"node_id":"MDU6SXNzdWUzOTMwNDQwNDk=","number":715,"title":"How to explicitly fail test?","user":{"login":"jyoung9028","id":16636969,"node_id":"MDQ6VXNlcjE2NjM2OTY5","avatar_url":"https://avatars2.githubusercontent.com/u/16636969?v=4","gravatar_id":"","url":"https://api.github.com/users/jyoung9028","html_url":"https://github.com/jyoung9028","followers_url":"https://api.github.com/users/jyoung9028/followers","following_url":"https://api.github.com/users/jyoung9028/following{/other_user}","gists_url":"https://api.github.com/users/jyoung9028/gists{/gist_id}","starred_url":"https://api.github.com/users/jyoung9028/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyoung9028/subscriptions","organizations_url":"https://api.github.com/users/jyoung9028/orgs","repos_url":"https://api.github.com/users/jyoung9028/repos","events_url":"https://api.github.com/users/jyoung9028/events{/privacy}","received_events_url":"https://api.github.com/users/jyoung9028/received_events","type":"User","site_admin":false},"labels":[{"id":447809601,"node_id":"MDU6TGFiZWw0NDc4MDk2MDE=","url":"https://api.github.com/repos/behave/behave/labels/question","name":"question","color":"5319e7","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-20T13:20:46Z","updated_at":"2018-12-26T06:17:27Z","closed_at":null,"author_association":"NONE","body":"So I've been using behave for a bit and sometimes, I want to explicitly fail a test if a certain thing happens. The way that I have been handling it was to explicitly raise an Exception. However, I have run into an issue where that is not failing the feature file that contains a Scenario Outline. It only fails that specific run of the Outline. It then tries to continue on.\r\n\r\nIs there a way to force fail a test that I'm overlooking?"},"comment":{"url":"https://api.github.com/repos/behave/behave/issues/comments/449911777","html_url":"https://github.com/behave/behave/issues/715#issuecomment-449911777","issue_url":"https://api.github.com/repos/behave/behave/issues/715","id":449911777,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTkxMTc3Nw==","user":{"login":"jyoung9028","id":16636969,"node_id":"MDQ6VXNlcjE2NjM2OTY5","avatar_url":"https://avatars2.githubusercontent.com/u/16636969?v=4","gravatar_id":"","url":"https://api.github.com/users/jyoung9028","html_url":"https://github.com/jyoung9028","followers_url":"https://api.github.com/users/jyoung9028/followers","following_url":"https://api.github.com/users/jyoung9028/following{/other_user}","gists_url":"https://api.github.com/users/jyoung9028/gists{/gist_id}","starred_url":"https://api.github.com/users/jyoung9028/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyoung9028/subscriptions","organizations_url":"https://api.github.com/users/jyoung9028/orgs","repos_url":"https://api.github.com/users/jyoung9028/repos","events_url":"https://api.github.com/users/jyoung9028/events{/privacy}","received_events_url":"https://api.github.com/users/jyoung9028/received_events","type":"User","site_admin":false},"created_at":"2018-12-26T06:17:27Z","updated_at":"2018-12-26T06:17:27Z","author_association":"NONE","body":"I already tried that. It was only in Scenario Outline's that the failures were not happening. I figured it out though. It was a gross oversight by me. It was correctly failing the scenario; however, it wasn't failing the feature. Which is what I wanted to do. Because technically, an outline is just a bunch of scenarios, it was working correctly. I had to change the configuration of behave to fail an entire feature file on failure. The default setting is for it to not too.\r\n\r\nThank you for your help though!"}}
{"actor":{"display_login":"jyoung9028"}}