diff --git a/src/Pickles/Pickles.Example/Features/12ParentFolder/ChildFolder/LeafFolder/Leaf.feature b/src/Pickles/Pickles.Example/Features/12ParentFolder/ChildFolder/LeafFolder/Leaf.feature new file mode 100644 index 000000000..24cdb25e5 --- /dev/null +++ b/src/Pickles/Pickles.Example/Features/12ParentFolder/ChildFolder/LeafFolder/Leaf.feature @@ -0,0 +1,11 @@ +Feature: Leaf Feature File + In order demonstrate what a feature would looks like nested in multiple folders + As a Pickles contributer + I create a simple feature example + +@mytag +Scenario: Leaf Example - Add two numbers + Given I have entered 50 into the calculator + And I have entered 70 into the calculator + When I press add + Then the result should be 120 on the screen diff --git a/src/Pickles/Pickles.Example/Features/12ParentFolder/ChildFolder/LeafFolder/Leaf.feature.cs b/src/Pickles/Pickles.Example/Features/12ParentFolder/ChildFolder/LeafFolder/Leaf.feature.cs new file mode 100644 index 000000000..b40953786 --- /dev/null +++ b/src/Pickles/Pickles.Example/Features/12ParentFolder/ChildFolder/LeafFolder/Leaf.feature.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by SpecFlow (http://www.specflow.org/). +// SpecFlow Version:1.8.1.0 +// SpecFlow Generator Version:1.8.0.0 +// Runtime Version:4.0.30319.18010 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ +#region Designer generated code +#pragma warning disable +namespace Pickles.Example.Features._12ParentFolder.ChildFolder.LeafFolder +{ + using TechTalk.SpecFlow; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.8.1.0")] + [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [NUnit.Framework.TestFixtureAttribute()] + [NUnit.Framework.DescriptionAttribute("Leaf Feature File")] + public partial class LeafFeatureFileFeature + { + + private static TechTalk.SpecFlow.ITestRunner testRunner; + +#line 1 "Leaf.feature" +#line hidden + + [NUnit.Framework.TestFixtureSetUpAttribute()] + public virtual void FeatureSetup() + { + testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner(); + TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Leaf Feature File", "In order demonstrate what a feature would looks like nested in multiple folders \r" + + "\nAs a Pickles contributer\r\nI create a simple feature example", ProgrammingLanguage.CSharp, ((string[])(null))); + testRunner.OnFeatureStart(featureInfo); + } + + [NUnit.Framework.TestFixtureTearDownAttribute()] + public virtual void FeatureTearDown() + { + testRunner.OnFeatureEnd(); + testRunner = null; + } + + [NUnit.Framework.SetUpAttribute()] + public virtual void TestInitialize() + { + } + + [NUnit.Framework.TearDownAttribute()] + public virtual void ScenarioTearDown() + { + testRunner.OnScenarioEnd(); + } + + public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo) + { + testRunner.OnScenarioStart(scenarioInfo); + } + + public virtual void ScenarioCleanup() + { + testRunner.CollectScenarioErrors(); + } + + [NUnit.Framework.TestAttribute()] + [NUnit.Framework.DescriptionAttribute("Leaf Example - Add two numbers")] + [NUnit.Framework.CategoryAttribute("mytag")] + public virtual void LeafExample_AddTwoNumbers() + { + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Leaf Example - Add two numbers", new string[] { + "mytag"}); +#line 7 +this.ScenarioSetup(scenarioInfo); +#line 8 + testRunner.Given("I have entered 50 into the calculator"); +#line 9 + testRunner.And("I have entered 70 into the calculator"); +#line 10 + testRunner.When("I press add"); +#line 11 + testRunner.Then("the result should be 120 on the screen"); +#line hidden + this.ScenarioCleanup(); + } + } +} +#pragma warning restore +#endregion diff --git a/src/Pickles/Pickles.Example/Pickles.Example.csproj b/src/Pickles/Pickles.Example/Pickles.Example.csproj index 024a26504..80fb1f9f8 100644 --- a/src/Pickles/Pickles.Example/Pickles.Example.csproj +++ b/src/Pickles/Pickles.Example/Pickles.Example.csproj @@ -1,272 +1,281 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {76BCDF34-BDAA-4474-A734-8C60041901D4} - Library - Properties - Pickles.Example - Pickles.Example - v3.5 - 512 - - ..\..\Pickles\ - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\NUnit.2.5.10.11092\lib\nunit.framework.dll - - - False - ..\packages\NUnit.2.5.10.11092\lib\nunit.mocks.dll - - - False - ..\packages\NUnit.2.5.10.11092\lib\pnunit.framework.dll - - - ..\packages\ShouldFluent.1.1.12.0\lib\Should.Fluent.dll - - - - - - - - - ..\packages\SpecFlow.1.8.1\lib\net35\TechTalk.SpecFlow.dll - - - - - VersionInfo.cs - - - True - True - BasicGherkin.feature - - - - - True - True - TestRunnerIsNotImportant.feature - - - True - True - Hooks.feature - - - - True - True - TagDemo.feature - - - - True - True - ScenarioContext.feature - - - - True - True - FeatureContextFeatures.feature - - - - True - True - ScenarioOutline.feature - - - - True - True - BackgroundFeature.feature - - - - True - True - TableScenario.feature - - - - True - True - CompareTo.feature - - - - True - True - Svenska.feature - - - - True - True - AttributeOverloading.feature - - - - - True - True - CallingStepsFromSteps.feature - - - - - True - True - StepTransformation.feature - - - - - - - True - True - ContextInjection.feature - - - - - - - - - - - - True - True - Arithmetic.feature - - - True - True - Trigonometry.feature - - - True - True - ClearingScreen.feature - - - - - - - - SpecFlowSingleFileGenerator - BasicGherkin1.feature.cs - - - SpecFlowSingleFileGenerator - TestRunnerIsNotImportant1.feature.cs - - - SpecFlowSingleFileGenerator - Hooks1.feature.cs - - - SpecFlowSingleFileGenerator - TagDemo1.feature.cs - - - SpecFlowSingleFileGenerator - ScenarioContext1.feature.cs - - - SpecFlowSingleFileGenerator - FeatureContextFeatures1.feature.cs - - - SpecFlowSingleFileGenerator - ScenarioOutline1.feature.cs - - - SpecFlowSingleFileGenerator - BackgroundFeature1.feature.cs - - - SpecFlowSingleFileGenerator - TableScenario1.feature.cs - - - SpecFlowSingleFileGenerator - CompareTo1.feature.cs - - - SpecFlowSingleFileGenerator - Svenska1.feature.cs - - - SpecFlowSingleFileGenerator - AttributeOverloading1.feature.cs - - - SpecFlowSingleFileGenerator - CallingStepsFromSteps1.feature.cs - - - SpecFlowSingleFileGenerator - StepTransformation1.feature.cs - - - SpecFlowSingleFileGenerator - ContextInjection1.feature.cs - - - SpecFlowSingleFileGenerator - Arithmetic1.feature.cs - - - SpecFlowSingleFileGenerator - Trigonometry.feature.cs - - - SpecFlowSingleFileGenerator - ClearingScreen.feature.cs - - - - - - - + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + {76BCDF34-BDAA-4474-A734-8C60041901D4} + Library + Properties + Pickles.Example + Pickles.Example + v3.5 + 512 + + ..\..\Pickles\ + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\NUnit.2.5.10.11092\lib\nunit.framework.dll + + + False + ..\packages\NUnit.2.5.10.11092\lib\nunit.mocks.dll + + + False + ..\packages\NUnit.2.5.10.11092\lib\pnunit.framework.dll + + + ..\packages\ShouldFluent.1.1.12.0\lib\Should.Fluent.dll + + + + + + + + + ..\packages\SpecFlow.1.8.1\lib\net35\TechTalk.SpecFlow.dll + + + + + VersionInfo.cs + + + True + True + BasicGherkin.feature + + + + + True + True + TestRunnerIsNotImportant.feature + + + True + True + Hooks.feature + + + + True + True + TagDemo.feature + + + + True + True + ScenarioContext.feature + + + + True + True + FeatureContextFeatures.feature + + + + True + True + ScenarioOutline.feature + + + + True + True + BackgroundFeature.feature + + + + True + True + TableScenario.feature + + + + True + True + CompareTo.feature + + + + True + True + Svenska.feature + + + + True + True + AttributeOverloading.feature + + + + + True + True + CallingStepsFromSteps.feature + + + + + True + True + StepTransformation.feature + + + + + + + True + True + ContextInjection.feature + + + + + + + + + + True + True + Leaf.feature + + + + + True + True + Arithmetic.feature + + + True + True + Trigonometry.feature + + + True + True + ClearingScreen.feature + + + + + + + + SpecFlowSingleFileGenerator + BasicGherkin1.feature.cs + + + SpecFlowSingleFileGenerator + TestRunnerIsNotImportant1.feature.cs + + + SpecFlowSingleFileGenerator + Hooks1.feature.cs + + + SpecFlowSingleFileGenerator + TagDemo1.feature.cs + + + SpecFlowSingleFileGenerator + ScenarioContext1.feature.cs + + + SpecFlowSingleFileGenerator + FeatureContextFeatures1.feature.cs + + + SpecFlowSingleFileGenerator + ScenarioOutline1.feature.cs + + + SpecFlowSingleFileGenerator + BackgroundFeature1.feature.cs + + + SpecFlowSingleFileGenerator + TableScenario1.feature.cs + + + SpecFlowSingleFileGenerator + CompareTo1.feature.cs + + + SpecFlowSingleFileGenerator + Svenska1.feature.cs + + + SpecFlowSingleFileGenerator + AttributeOverloading1.feature.cs + + + SpecFlowSingleFileGenerator + CallingStepsFromSteps1.feature.cs + + + SpecFlowSingleFileGenerator + StepTransformation1.feature.cs + + + SpecFlowSingleFileGenerator + ContextInjection1.feature.cs + + + SpecFlowSingleFileGenerator + Leaf.feature.cs + + + SpecFlowSingleFileGenerator + Arithmetic1.feature.cs + + + SpecFlowSingleFileGenerator + Trigonometry.feature.cs + + + SpecFlowSingleFileGenerator + ClearingScreen.feature.cs + + + + + + + \ No newline at end of file diff --git a/src/Pickles/Pickles/Resources/structure.css b/src/Pickles/Pickles/Resources/structure.css index e8ea462ff..b9a432dbc 100644 --- a/src/Pickles/Pickles/Resources/structure.css +++ b/src/Pickles/Pickles/Resources/structure.css @@ -1,222 +1,226 @@ -/************************************************************************* - * Entire body - *************************************************************************/ - -#container { - -moz-box-shadow: 5px 5px 5px #ccc; - -webkit-box-shadow: 5px 5px 5px #ccc; - background-color: #f2f2f2; - border: 1px solid gray; - box-shadow: 5px 5px 5px #ccc; - color: #333; - line-height: 130%; - margin: 10px auto; - width: 90%; -} - -/************************************************************************* - * Header/Top - *************************************************************************/ - -#top { - border-bottom: 1px solid gray; - padding: .5em; -} - -#top h1 { - margin: 0; - padding: 0; -} - -/************************************************************************* - * Table of Contents - *************************************************************************/ - -#toc { - border-right: 1px solid gray; - float: left; - margin-right: auto; - max-width: 20em; - width: auto; -} - -#toc p { margin: 0 0 1em 0; } - - -#toc ul { - list-style-type: none; - margin: 0; - padding: 0; -} - -#toc ul li a { - color: gray; - text-decoration: none; -} - -#toc .current { font-style: oblique; } - -#toc ul li a:hover { - color: #000000; - text-decoration: underline; -} - -#toc .directory { - background: #F9F9f9; - border-bottom: 1px solid #ddd; - border-top: 1px solid #fff; - font-weight: bold; - padding: 5px 10px 6px; -} - -#toc .directory a { color: black; } - -#toc .file { - border-bottom: 1px solid #E8E8e8; - padding: 3px 10px 4px 20px; -} - -#toc.collapsed ul { display: none; } - -#toc.collapsed { border-right-width: 0; } - -p.tocCollapser { - color: gray; - cursor: pointer; - float: right; - padding-right: 1em; -} - -p.tocCollapser:hover { - color: black; - cursor: pointer; -} - -/************************************************************************* - * Feature and Markdown - *************************************************************************/ - -#feature, #markdown { - margin-left: auto; - overflow: hidden; - padding: 1em; -} - -#feature h1, #feature h2, #markdown h1, #markdown h2 { - line-height: 105%; - margin: 0 0 .5em 0; -} - -/************************************************************************* - * Feature index - *************************************************************************/ - -#feature li { margin-bottom: 1em; } - -#feature span.title { - color: #000000; - display: block; - font-size: large; - font-weight: bold; -} - -#feature a { text-decoration: none; } - -#feature a:hover span.title { text-decoration: underline; } - -#feature span.separator { display: none; } - -#feature span.description { - color: black; - display: block; -} - -#feature div.folderDescription { margin-bottom: 2em; } - -#feature div.folderDescription li { list-style-type: disc; } - -/************************************************************************* - * Feature - formatting tables (example or step tables) - *************************************************************************/ - -#feature .table_container { margin: 8px 0px 8px 0px; } - -#feature table { - border-collapse: collapse; - empty-cells: show; - margin: 0 1em 0 1em; - width: 90%; -} - -#feature th, td { - border: 1px solid black; - padding: 3px; -} - -#feature td { - background-color: white; - vertical-align: top; -} - -#feature th { background-color: #C3D9FF; } - -/************************************************************************* - * Feature - formatting scenarios and steps - *************************************************************************/ - -ul#scenarios { - list-style-type: none; - margin: 0; - padding: 0; -} - -li.scenario { - background-color: #F5F9FD; - border: 1px solid #C3D9FF; - margin: 6px 0px 28px 0px; - padding: 2px 12px 6px 12px; -} - -/************************************************************************* - * Feature - Formatting the docStrings - *************************************************************************/ - -.step pre { - background-color: #E0F8E0; - border-color: #fff; - font-size: 0.85em; - margin: 0.5em 0 0.5em 1.2em; - overflow: auto; -} - -.step pre code { - background: #000; - color: #f8f8f8; - display: block; - font: 0.95em 'monaco', 'lucida console', monospace; - padding: .5em; -} - -/************************************************************************* - * Feature - Formatting the step keywords - *************************************************************************/ - -.keyword { font-weight: bold; } - -/************************************************************************* - * Footer - *************************************************************************/ - -#footer { - border-top: 1px solid gray; - clear: both; - color: #333; - margin: 0; - padding: .5em; -} - -#footer p { - line-height: 100%; - margin: 0 0 3px 0; - padding: 0 0 3px 0; +/************************************************************************* + * Entire body + *************************************************************************/ + +#container { + -moz-box-shadow: 5px 5px 5px #ccc; + -webkit-box-shadow: 5px 5px 5px #ccc; + background-color: #f2f2f2; + border: 1px solid gray; + box-shadow: 5px 5px 5px #ccc; + color: #333; + line-height: 130%; + margin: 10px auto; + width: 90%; +} + +/************************************************************************* + * Header/Top + *************************************************************************/ + +#top { + border-bottom: 1px solid gray; + padding: .5em; +} + +#top h1 { + margin: 0; + padding: 0; +} + +/************************************************************************* + * Table of Contents + *************************************************************************/ + +#toc { + border-right: 1px solid gray; + float: left; + margin-right: auto; + max-width: 20em; + width: auto; +} + +#toc p { margin: 0 0 1em 0; } + + +#toc ul { + list-style-type: none; + margin: 0; + padding: 0; +} + +#toc ul.features .features li { + padding-left: 1.25em; +} + +#toc ul li a { + color: gray; + text-decoration: none; +} + +#toc .current { font-style: oblique; } + +#toc ul li a:hover { + color: #000000; + text-decoration: underline; +} + +#toc .directory { + background: #F9F9f9; + border-bottom: 1px solid #ddd; + border-top: 1px solid #fff; + font-weight: bold; + padding: 5px 10px 6px; +} + +#toc .directory a { color: black; } + +#toc .file { + border-bottom: 1px solid #E8E8e8; + padding: 3px 10px 4px 20px; +} + +#toc.collapsed ul { display: none; } + +#toc.collapsed { border-right-width: 0; } + +p.tocCollapser { + color: gray; + cursor: pointer; + float: right; + padding-right: 1em; +} + +p.tocCollapser:hover { + color: black; + cursor: pointer; +} + +/************************************************************************* + * Feature and Markdown + *************************************************************************/ + +#feature, #markdown { + margin-left: auto; + overflow: hidden; + padding: 1em; +} + +#feature h1, #feature h2, #markdown h1, #markdown h2 { + line-height: 105%; + margin: 0 0 .5em 0; +} + +/************************************************************************* + * Feature index + *************************************************************************/ + +#feature li { margin-bottom: 1em; } + +#feature span.title { + color: #000000; + display: block; + font-size: large; + font-weight: bold; +} + +#feature a { text-decoration: none; } + +#feature a:hover span.title { text-decoration: underline; } + +#feature span.separator { display: none; } + +#feature span.description { + color: black; + display: block; +} + +#feature div.folderDescription { margin-bottom: 2em; } + +#feature div.folderDescription li { list-style-type: disc; } + +/************************************************************************* + * Feature - formatting tables (example or step tables) + *************************************************************************/ + +#feature .table_container { margin: 8px 0px 8px 0px; } + +#feature table { + border-collapse: collapse; + empty-cells: show; + margin: 0 1em 0 1em; + width: 90%; +} + +#feature th, td { + border: 1px solid black; + padding: 3px; +} + +#feature td { + background-color: white; + vertical-align: top; +} + +#feature th { background-color: #C3D9FF; } + +/************************************************************************* + * Feature - formatting scenarios and steps + *************************************************************************/ + +ul#scenarios { + list-style-type: none; + margin: 0; + padding: 0; +} + +li.scenario { + background-color: #F5F9FD; + border: 1px solid #C3D9FF; + margin: 6px 0px 28px 0px; + padding: 2px 12px 6px 12px; +} + +/************************************************************************* + * Feature - Formatting the docStrings + *************************************************************************/ + +.step pre { + background-color: #E0F8E0; + border-color: #fff; + font-size: 0.85em; + margin: 0.5em 0 0.5em 1.2em; + overflow: auto; +} + +.step pre code { + background: #000; + color: #f8f8f8; + display: block; + font: 0.95em 'monaco', 'lucida console', monospace; + padding: .5em; +} + +/************************************************************************* + * Feature - Formatting the step keywords + *************************************************************************/ + +.keyword { font-weight: bold; } + +/************************************************************************* + * Footer + *************************************************************************/ + +#footer { + border-top: 1px solid gray; + clear: both; + color: #333; + margin: 0; + padding: .5em; +} + +#footer p { + line-height: 100%; + margin: 0 0 3px 0; + padding: 0 0 3px 0; } \ No newline at end of file