diff --git a/src/Pickles.DocumentationBuilders.Cucumber.UnitTests/FormattingAFeature.feature b/src/Pickles.DocumentationBuilders.Cucumber.UnitTests/FormattingAFeature.feature index d1638538..13c76d62 100644 --- a/src/Pickles.DocumentationBuilders.Cucumber.UnitTests/FormattingAFeature.feature +++ b/src/Pickles.DocumentationBuilders.Cucumber.UnitTests/FormattingAFeature.feature @@ -49,7 +49,7 @@ Scenario: A simple feature "line": 8, "hidden": false, "result": { - "status": "Undefined", + "status": "undefined", "duration": 1 } }, @@ -59,7 +59,7 @@ Scenario: A simple feature "line": 9, "hidden": false, "result": { - "status": "Undefined", + "status": "undefined", "duration": 1 } }, @@ -69,7 +69,7 @@ Scenario: A simple feature "line": 10, "hidden": false, "result": { - "status": "Undefined", + "status": "undefined", "duration": 1 } }, @@ -79,7 +79,7 @@ Scenario: A simple feature "line": 11, "hidden": false, "result": { - "status": "Undefined", + "status": "undefined", "duration": 1 } } @@ -149,7 +149,7 @@ Scenario: A feature with a table "line": 8, "hidden": false, "result": { - "status": "Undefined", + "status": "undefined", "duration": 1 } }, @@ -159,7 +159,7 @@ Scenario: A feature with a table "line": 32, "hidden": false, "result": { - "status": "Undefined", + "status": "undefined", "duration": 1 } }, @@ -169,7 +169,7 @@ Scenario: A feature with a table "line": 33, "hidden": false, "result": { - "status": "Undefined", + "status": "undefined", "duration": 1 } } diff --git a/src/Pickles.DocumentationBuilders.Cucumber.UnitTests/FormattingAFeature.feature.cs b/src/Pickles.DocumentationBuilders.Cucumber.UnitTests/FormattingAFeature.feature.cs index 374ea016..f590146e 100644 --- a/src/Pickles.DocumentationBuilders.Cucumber.UnitTests/FormattingAFeature.feature.cs +++ b/src/Pickles.DocumentationBuilders.Cucumber.UnitTests/FormattingAFeature.feature.cs @@ -127,17 +127,17 @@ When I press C " },\r\n {\r\n \"name\": \"@slow\"\r\n }\r\n ],\r\n " + "\"steps\": [\r\n {\r\n \"keyword\": \"Given\",\r\n \"name\": \"I" + " have entered 50 into the calculator\",\r\n \"line\": 8,\r\n \"hid" + - "den\": false,\r\n \"result\": {\r\n \"status\": \"Undefined\",\r\n " + + "den\": false,\r\n \"result\": {\r\n \"status\": \"undefined\",\r\n " + " \"duration\": 1\r\n }\r\n },\r\n {\r\n " + "\"keyword\": \"And\",\r\n \"name\": \"I have entered 70 into the calculator\",\r" + "\n \"line\": 9,\r\n \"hidden\": false,\r\n \"result\": {\r\n" + - " \"status\": \"Undefined\",\r\n \"duration\": 1\r\n }" + + " \"status\": \"undefined\",\r\n \"duration\": 1\r\n }" + "\r\n },\r\n {\r\n \"keyword\": \"When\",\r\n \"name\":" + " \"I press C\",\r\n \"line\": 10,\r\n \"hidden\": false,\r\n " + - " \"result\": {\r\n \"status\": \"Undefined\",\r\n \"duration\": 1" + + " \"result\": {\r\n \"status\": \"undefined\",\r\n \"duration\": 1" + "\r\n }\r\n },\r\n {\r\n \"keyword\": \"Then\",\r\n " + " \"name\": \"the screen should be empty\",\r\n \"line\": 11,\r\n " + - " \"hidden\": false,\r\n \"result\": {\r\n \"status\": \"Undefine" + + " \"hidden\": false,\r\n \"result\": {\r\n \"status\": \"undefine" + "d\",\r\n \"duration\": 1\r\n }\r\n }", ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden } @@ -234,7 +234,7 @@ When I click on the table heading ""line"": 8, ""hidden"": false, ""result"": { - ""status"": ""Undefined"", + ""status"": ""undefined"", ""duration"": 1 } }, @@ -244,7 +244,7 @@ When I click on the table heading ""line"": 32, ""hidden"": false, ""result"": { - ""status"": ""Undefined"", + ""status"": ""undefined"", ""duration"": 1 } }, @@ -254,7 +254,7 @@ When I click on the table heading ""line"": 33, ""hidden"": false, ""result"": { - ""status"": ""Undefined"", + ""status"": ""undefined"", ""duration"": 1 } }", ((TechTalk.SpecFlow.Table)(null)), "Then "); diff --git a/src/Pickles.DocumentationBuilders.Cucumber/CucumberDocumentationBuilder.cs b/src/Pickles.DocumentationBuilders.Cucumber/CucumberDocumentationBuilder.cs index f300b0d9..cf93002c 100644 --- a/src/Pickles.DocumentationBuilders.Cucumber/CucumberDocumentationBuilder.cs +++ b/src/Pickles.DocumentationBuilders.Cucumber/CucumberDocumentationBuilder.cs @@ -167,7 +167,7 @@ private static string DetermineStatus(IFeatureElement fe) throw new ArgumentOutOfRangeException("Unknown test result "+testResult); } - return Enum.GetName(typeof(CucumberTestResults),cucumberTestResult); + return Enum.GetName(typeof(CucumberTestResults),cucumberTestResult).ToLowerInvariant(); } private void CreateFile(string outputFolderName, string jsonToWrite)