{"action":"opened","issue":{"url":"https://api.github.com/repos/getgauge/gauge/issues/484","repository_url":"https://api.github.com/repos/getgauge/gauge","labels_url":"https://api.github.com/repos/getgauge/gauge/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/getgauge/gauge/issues/484/comments","events_url":"https://api.github.com/repos/getgauge/gauge/issues/484/events","html_url":"https://github.com/getgauge/gauge/issues/484","id":166798497,"number":484,"title":"Continue on failure not working for context steps","user":{"login":"BugDiver","id":15309877,"avatar_url":"https://avatars.githubusercontent.com/u/15309877?v=3","gravatar_id":"","url":"https://api.github.com/users/BugDiver","html_url":"https://github.com/BugDiver","followers_url":"https://api.github.com/users/BugDiver/followers","following_url":"https://api.github.com/users/BugDiver/following{/other_user}","gists_url":"https://api.github.com/users/BugDiver/gists{/gist_id}","starred_url":"https://api.github.com/users/BugDiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BugDiver/subscriptions","organizations_url":"https://api.github.com/users/BugDiver/orgs","repos_url":"https://api.github.com/users/BugDiver/repos","events_url":"https://api.github.com/users/BugDiver/events{/privacy}","received_events_url":"https://api.github.com/users/BugDiver/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/getgauge/gauge/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-21T11:37:21Z","updated_at":"2016-07-21T11:37:21Z","closed_at":null,"body":"_From @sguptatw on July 19, 2016 6:4_\n\n**Expected behavior**\nWith a step having an error/exception the next steps should get executed.\n\n**Actual behavior**\nEven with the Continue on failure attribute on the step, the next step is not getting executed.\n\n**Steps to replicate**\n1. Create a spec\n```\nSpecification Heading\n=====================\n\nThis is an executable specification file. This file follows markdown syntax.\nEvery heading in this file denotes a scenario. Every bulleted point denotes a step.\n\nTo execute this specification, run\n\n    gauge specs\n     |hfg  |\n     |-----|\n     |aeiou|\n* Vowels <hfg>.\n* Continue on failure\n\nVowel counts in single word\n---------------------------\n\ntags: single word\n\n* The word \"gauge\" has \"3\" vowels.\n<table>\n* Concept Heading1\n* gggggggggggggggg\n```\n2. Give the implementation\n```\nprivate HashSet<char> _vowels;\n\n        [Step(\"Vowels <vowelString>.\")]\n        public void SetLanguageVowels(string vowelString)\n        {\n            _vowels = new HashSet<char>();\n            foreach (var c in vowelString)\n            {\n                _vowels.Add(c);\n            }\n        }\n        \n/*    [BeforeSuite]\n        public void B1()\n            {\n            throw new Exception(\"here1\");\n        }*/\n    [Step(\"The word <word> has <expectedCount> vowels.\")]\n        public void VerifyVowelsCountInWord(string word, int expectedCount)\n        {\n            var actualCount = CountVowels(word);\n            actualCount.Should().Be(expectedCount);\n            Console.WriteLine(\"here\");\n            GaugeMessages.WriteMessage(\"sdf12\");\n        }\n\n        [Step(\"Almost all words have vowels <wordsTable>\")]\n        public void VerifyVowelsCountInMultipleWords(Table wordsTable)\n        {\n            var rows = wordsTable.GetTableRows();\n            foreach (var row in rows)\n            {\n                var word = row.GetCell(\"Word\");\n                var expectedCount = Convert.ToInt32(row.GetCell(\"Vowel Count\"));\n                var actualCount = CountVowels(word);\n\n                actualCount.Should().Be(expectedCount);\n            }\n        }\n\n        private int CountVowels(String word)\n        {\n            return word.Count(c => _vowels.Contains(c));\n        }\n\n        [Step(\"step1\")]\n        public void Step1()\n        {\n\n        }\n\n        [Step(\"111111111111111\")]\n        public void Sdf()\n        {\n\n        }\n\n        [Step(\"Continue on failure\")]\n        [ContinueOnFailure]\n        public void ContinueOnFailure()\n        {\n            throw new Exception(\"sdf\");\n        }\n\n        [Step(\"gggggggggggggggg\")]\n        [ContinueOnFailure]\n        public void Gggggggggggggggg(String adf)\n        {\n            \"abc\".Should().Be(\"def\");\n        }\n```\n3. run specs\n```\ngauge specs\n```\n4. It is failing at the first point of failure.\n**Version**\n```\nGauge version: 0.5.1.nightly-2016-07-18\n\nPlugins\n-------\ncsharp (0.8.1.nightly-2016-07-18)\nhtml-report (2.1.1.nightly-2016-07-18)\njava (0.4.2.nightly-2016-07-15)\nruby (0.2.2.nightly-2016-07-18)\nxml-report (0.1.2.nightly-2016-07-18)\n```\n\n_Copied from original issue: getgauge/gauge-csharp#85_"}}
{"actor":{"display_login":"BugDiver"}}