forked from x97mdr/pickles
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
363 additions
and
8 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@echo off | ||
set "picklesVersion=2.0.1" | ||
set "picklesVersion=2.0.2" | ||
|
||
cls | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,7 +164,7 @@ li.step { | |
} | ||
|
||
.table { | ||
width: 0; | ||
width: auto; | ||
max-width: 90%; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/Pickles/Pickles.Test/TestFrameworks/WhenParsingProblematicScenarioOutlineResults.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// -------------------------------------------------------------------------------------------------------------------- | ||
// <copyright file="WhenParsingProblematicScenarioOutlineResults.cs" company="PicklesDoc"> | ||
// Copyright 2011 Jeffrey Cameron | ||
// Copyright 2012-present PicklesDoc team and community contributors | ||
// | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// </copyright> | ||
// -------------------------------------------------------------------------------------------------------------------- | ||
|
||
using NFluent; | ||
|
||
using NUnit.Framework; | ||
|
||
using PicklesDoc.Pickles.ObjectModel; | ||
using PicklesDoc.Pickles.TestFrameworks; | ||
|
||
namespace PicklesDoc.Pickles.Test.TestFrameworks | ||
{ | ||
[TestFixture] | ||
public class WhenParsingProblematicScenarioOutlineResults : WhenParsingTestResultFiles<NUnitResults> | ||
{ | ||
public WhenParsingProblematicScenarioOutlineResults() | ||
: base("results-problem-with-outline-results-nunit.xml") | ||
{ | ||
} | ||
|
||
[Test] | ||
public void ThenCanReadIndividualResultsFromScenarioOutline_ContainingDollarSigns_ShouldBeTestResultSuccess() | ||
{ | ||
var results = ParseResultsFile(); | ||
results.SetExampleSignatureBuilder(new NUnitExampleSignatureBuilder()); | ||
|
||
var feature = new Feature { Name = "ExampleWebFeature" }; | ||
|
||
var scenarioOutline = new ScenarioOutline { Name = "Login", Feature = feature }; | ||
|
||
TestResult exampleResultOutline = results.GetScenarioOutlineResult(scenarioOutline); | ||
Check.That(exampleResultOutline).IsEqualTo(TestResult.Passed); | ||
|
||
TestResult exampleResult = results.GetExampleResult(scenarioOutline, new[] { "special characters", "$$$" }); | ||
Check.That(exampleResult).IsEqualTo(TestResult.Passed); | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
src/Pickles/Pickles.Test/TestFrameworks/results-problem-with-outline-results-nunit.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<!--This file represents the results of running a test suite--> | ||
<test-results name="E:\Google Drive\Documents\Cucumber_Selenium_CSharp\Specflow_Selenium_PO_Example2\Specflow_Selenium_PO_Example2\bin\Debug\Specflow_Selenium_PO_Example2.dll" total="4" errors="0" failures="0" not-run="0" inconclusive="0" ignored="0" skipped="0" invalid="0" date="2015-11-17" time="08:39:12"> | ||
<environment nunit-version="2.6.4.14350" clr-version="2.0.50727.8009" os-version="Microsoft Windows NT 6.2.9200.0" platform="Win32NT" cwd="E:\Google Drive\Documents\Cucumber_Selenium_CSharp\Specflow_Selenium_PO_Example2\Specflow_Selenium_PO_Example2" machine-name="CHROMEBOOKVM2" user="markwinspear" user-domain="CHROMEBOOKVM2" /> | ||
<culture-info current-culture="en-GB" current-uiculture="en-US" /> | ||
<test-suite type="Assembly" name="E:\Google Drive\Documents\Cucumber_Selenium_CSharp\Specflow_Selenium_PO_Example2\Specflow_Selenium_PO_Example2\bin\Debug\Specflow_Selenium_PO_Example2.dll" executed="True" result="Success" success="True" time="39.350" asserts="0"> | ||
<results> | ||
<test-suite type="Namespace" name="Specflow_Selenium_PO_Example2" executed="True" result="Success" success="True" time="39.337" asserts="0"> | ||
<results> | ||
<test-suite type="Namespace" name="Features" executed="True" result="Success" success="True" time="39.337" asserts="0"> | ||
<results> | ||
<test-suite type="TestFixture" name="ExampleFeature" description="example" executed="True" result="Success" success="True" time="0.712" asserts="0"> | ||
<results> | ||
<test-case name="Specflow_Selenium_PO_Example2.Features.ExampleFeature.AddTwoNumbers" description="Add two numbers" executed="True" result="Success" success="True" time="0.270" asserts="0"> | ||
<categories> | ||
<category name="mytag" /> | ||
</categories> | ||
</test-case> | ||
</results> | ||
</test-suite> | ||
<test-suite type="TestFixture" name="ExampleWebFeatureFeature" description="ExampleWebFeature" executed="True" result="Success" success="True" time="38.614" asserts="0"> | ||
<categories> | ||
<category name="web" /> | ||
</categories> | ||
<results> | ||
<test-suite type="ParameterizedTest" name="Login" description="Login" executed="True" result="Success" success="True" time="38.611" asserts="0"> | ||
<results> | ||
<test-case name="Specflow_Selenium_PO_Example2.Features.ExampleWebFeatureFeature.Login("special characters","$$$","SuperSecretPassword!","failed",null)" executed="True" result="Success" success="True" time="10.734" asserts="1" /> | ||
</results> | ||
</test-suite> | ||
</results> | ||
</test-suite> | ||
</results> | ||
</test-suite> | ||
</results> | ||
</test-suite> | ||
</results> | ||
</test-suite> | ||
</test-results> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters