From c9029382dc2c8d9da45d71ffd4d7d173cfb071d1 Mon Sep 17 00:00:00 2001 From: Dirk Rombauts Date: Tue, 6 Jun 2017 19:44:40 +0200 Subject: [PATCH] Release 2.16.0 (#465) * Move to NSubstitute and NFluent (#452) * Remove-Package Moq * Install-Package NSubstitute * Use NSubstitute instead of Moq * Remove-Package Shoudly * Make GhostDoc happy * Make SpecFlow happy * Install-Package NFluent * Use NFluent * Fix spaces at the end of lines * Fix indentation * Introduce MarkTestAs class * Better argument names * Use language type keyword * Update nuget (#454) * Update-Package Autofac * Update-Package Newtonsoft.Json * Update-Package NLog* * Update-Package System.IO.Abstractions * Update-Package NUnit * Update-Package ClosedXML * Update nuget 201704 (#458) * Update-Package NLog* * Update-Package MahApps * Move NDesk.Options dependency to command line runner (#459) * Introduce Unit Test project for command line * Move CommandLineArgumentParser * Remove NDesk.Options from Pickles * Add build scripts to solution * Encoded files different from default cannot be parsed (#457) * Parsed files are read with encoding deduced from reading first 4 bytes. Fallback is default encoding. * Default to UTF8 * Extract file encoding logic to a separate class * Add test cases for EncodingDetector * Inline now-useless method * Update Nuget Packages (#462) * Update-Package NLog* * Update-Package NUnit * Update-Package System.IO.Abstraction * Update-Package NSubstitute * Update-Package Autofac * Show inconclusive results (#463) * Release 2.16.0 (#464) * Version Bump (2.16.0) * Correct heading * Add change log for 2.16.0 * Version 2.16.0 * update chocolatey script --- CHANGELOG.md | 17 ++- DeployToChocolatey.cmd | 2 +- build.bat | 2 +- build.fsx | 7 + chocolatey.fsx | 1 - chocolatey/picklesui.nuspec | 1 - docs/Output/Dhtml/Index.html | 4 +- docs/Output/Dhtml/pickledFeatures.js | 4 +- docs/Output/Excel/features.xlsx | Bin 38739 -> 38739 bytes .../Features/00BasicGherkin/BasicGherkin.html | 6 +- .../Html/Features/00BasicGherkin/index.html | 6 +- .../TestRunnerIsNotImportant.html | 6 +- .../Html/Features/01TestRunner/index.html | 6 +- .../Html/Features/02TagsAndHooks/Hooks.html | 6 +- .../Html/Features/02TagsAndHooks/TagDemo.html | 6 +- .../Html/Features/02TagsAndHooks/index.html | 6 +- .../031ScenarioContext/ScenarioContext.html | 6 +- .../Features/031ScenarioContext/index.html | 6 +- .../FeatureContextFeatures.html | 6 +- .../Features/032FeatureContext/index.html | 6 +- .../03ScenarioOutline/ScenarioOutline.html | 6 +- .../Features/03ScenarioOutline/index.html | 6 +- .../04Background/BackgroundFeature.html | 6 +- .../Html/Features/04Background/index.html | 6 +- .../05TablesAndAssist/TableScenario.html | 6 +- .../Features/05TablesAndAssist/index.html | 6 +- .../Features/06CompareToAssist/CompareTo.html | 6 +- .../Features/06CompareToAssist/index.html | 6 +- .../Html/Features/07Localization/Svenska.html | 6 +- .../Html/Features/07Localization/Vlaams.html | 6 +- .../Html/Features/07Localization/index.html | 6 +- .../AttributeOverloading.html | 6 +- .../08AttributeOverloading/index.html | 6 +- .../CallingStepsFromSteps.html | 6 +- .../09CallingStepsFromSteps/index.html | 6 +- .../StepTransformation.html | 6 +- .../Features/10StepTransformation/index.html | 6 +- .../11ContextInjection/ContextInjection.html | 6 +- .../Features/11ContextInjection/index.html | 6 +- .../ChildChildFolder/NestedFolderExample.html | 6 +- .../ChildFolder/ChildChildFolder/index.html | 6 +- .../12NestedFolders/ChildFolder/index.html | 6 +- .../Html/Features/12NestedFolders/index.html | 6 +- .../MultilineFeatureExample.html | 6 +- .../Html/Features/13MultilineText/index.html | 6 +- .../14MarkdownExample/MarkdownExamples.html | 6 +- .../Features/14MarkdownExample/index.html | 6 +- .../15Pickles/InteractiveDHTMLView.html | 6 +- .../Output/Html/Features/15Pickles/index.html | 6 +- docs/Output/Html/Features/Arithmetic.html | 6 +- docs/Output/Html/Features/Trigonometry.html | 6 +- .../Features/Workflow/ClearingScreen.html | 6 +- docs/Output/Html/Features/Workflow/index.html | 6 +- docs/Output/Html/Features/index.html | 6 +- docs/Output/Html/index.html | 6 +- docs/Output/Html/readme.html | 6 +- docs/Output/JSON/pickledFeatures.json | 4 +- docs/Output/Word/Pickles.docx | Bin 14061 -> 14062 bytes docs/Output/Word/features.docx | Bin 14046 -> 14046 bytes docs/index.html | 2 +- nuget.fsx | 2 - src/Pickles/Pickles.BaseDhtmlFiles/Index.html | 4 +- .../Pickles.CommandLine.UnitTests.csproj | 117 ++++++++++++++++ ...es.CommandLine.UnitTests.v3.ncrunchproject | 5 + .../Properties/AssemblyInfo.cs | 4 + .../WhenParsingCommandLineArguments.cs | 15 +- .../packages.config | 7 + .../CommandLineArgumentParser.cs | 6 +- src/Pickles/Pickles.CommandLine/NLog.xsd | 128 +++++++++++++++--- .../Pickles.CommandLine.csproj | 11 +- .../Pickles.CommandLine.v3.ncrunchproject | 6 + src/Pickles/Pickles.CommandLine/Program.cs | 1 + .../Pickles.CommandLine/packages.config | 10 +- ...entationBuilders.Cucumber.UnitTests.csproj | 16 +-- .../packages.config | 8 +- ...kles.DocumentationBuilders.Cucumber.csproj | 10 +- .../packages.config | 6 +- ...cumentationBuilders.Dhtml.UnitTests.csproj | 12 +- .../packages.config | 6 +- ...Pickles.DocumentationBuilders.Dhtml.csproj | 10 +- .../packages.config | 6 +- ...cumentationBuilders.Excel.UnitTests.csproj | 12 +- .../packages.config | 6 +- ...Pickles.DocumentationBuilders.Excel.csproj | 14 +- .../packages.config | 8 +- ...ocumentationBuilders.Html.UnitTests.csproj | 16 +-- .../packages.config | 8 +- .../Pickles.DocumentationBuilders.Html.csproj | 10 +- .../packages.config | 6 +- ...ocumentationBuilders.Json.UnitTests.csproj | 16 +-- .../packages.config | 8 +- .../Pickles.DocumentationBuilders.Json.csproj | 14 +- .../packages.config | 8 +- ...ocumentationBuilders.Word.UnitTests.csproj | 16 +-- .../packages.config | 8 +- .../Pickles.DocumentationBuilders.Word.csproj | 10 +- .../packages.config | 6 +- .../Pickles.MSBuild/Pickles.MSBuild.csproj | 8 +- .../Pickles.MSBuild/Pickles.MSBuild.nuspec | 1 - src/Pickles/Pickles.MSBuild/packages.config | 4 +- .../Pickles.ObjectModel.csproj | 4 +- .../Pickles.ObjectModel/packages.config | 2 +- .../Pickles.PowerShell/Pickle_Features.cs | 22 +-- .../Pickles.PowerShell.csproj | 8 +- src/Pickles/Pickles.PowerShell/Pickles.nuspec | 1 - .../Pickles.PowerShell/packages.config | 4 +- src/Pickles/Pickles.Test/BaseFixture.cs | 15 +- .../Pickles.Test/EncodingDetectorTests.cs | 123 +++++++++++++++++ .../Formatters/HtmlContentFormatterTests.cs | 10 +- .../HtmlScenarioOutlineFormatterTests.cs | 7 +- src/Pickles/Pickles.Test/Pickles.Test.csproj | 34 ++--- src/Pickles/Pickles.Test/packages.config | 14 +- .../Pickles.TestFrameworks.UnitTests.csproj | 24 ++-- .../WhenParsingMultipleTestResultsTests.cs | 40 +++--- .../packages.config | 10 +- .../Pickles.TestFrameworks.csproj | 8 +- .../Pickles.TestFrameworks/packages.config | 4 +- src/Pickles/Pickles.UserInterface/NLog.xsd | 128 +++++++++++++++--- .../Pickles.UserInterface.csproj | 16 +-- .../Pickles.UserInterface/packages.config | 12 +- src/Pickles/Pickles.sln | 17 ++- src/Pickles/Pickles.sln.GhostDoc.xml | 1 + .../Pickles/CommandLinArgumentHelpTexts.cs | 39 ++++++ src/Pickles/Pickles/EncodingDetector.cs | 38 ++++++ .../Pickles/FileSystemBasedFeatureParser.cs | 35 +++-- src/Pickles/Pickles/Pickles.csproj | 24 ++-- src/Pickles/Pickles/packages.config | 10 +- src/Pickles/VersionInfo.cs | 8 +- test-harness/AutomationLayer/AdditionSteps.cs | 12 +- .../AutomationLayer/AutomationLayer.csproj | 5 +- test-harness/AutomationLayer/MarkTestAs.cs | 23 ++++ .../MinimalFeatures/MinimalSteps.cs | 10 +- .../AutomationLayer/ScenarioOutlineSteps.cs | 70 +++++----- test-harness/AutomationLayer/packages.config | 2 +- test-harness/SpecRun/App.config | 8 ++ test-harness/TestHarness.sln.GhostDoc.xml | 1 + test.fsx | 11 ++ 137 files changed, 1163 insertions(+), 532 deletions(-) create mode 100644 src/Pickles/Pickles.CommandLine.UnitTests/Pickles.CommandLine.UnitTests.csproj create mode 100644 src/Pickles/Pickles.CommandLine.UnitTests/Pickles.CommandLine.UnitTests.v3.ncrunchproject create mode 100644 src/Pickles/Pickles.CommandLine.UnitTests/Properties/AssemblyInfo.cs rename src/Pickles/{Pickles.Test => Pickles.CommandLine.UnitTests}/WhenParsingCommandLineArguments.cs (98%) create mode 100644 src/Pickles/Pickles.CommandLine.UnitTests/packages.config rename src/Pickles/{Pickles => Pickles.CommandLine}/CommandLineArgumentParser.cs (99%) create mode 100644 src/Pickles/Pickles.CommandLine/Pickles.CommandLine.v3.ncrunchproject create mode 100644 src/Pickles/Pickles.Test/EncodingDetectorTests.cs create mode 100644 src/Pickles/Pickles/CommandLinArgumentHelpTexts.cs create mode 100644 src/Pickles/Pickles/EncodingDetector.cs create mode 100644 test-harness/AutomationLayer/MarkTestAs.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dde8e23f..020ee33d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,9 +14,24 @@ Features in Experimental are subject to change and removal without being conside This document is formatted according to the principles of [Keep A CHANGELOG](http://keepachangelog.com). +## [2.16.0] - 2017-06-06 + +### Added + +- Add handling to guess some encodings ([457](https://github.com/picklesdoc/pickles/pull/457)) (by [@s991116](https://github.com/s991116) and [@dirkrombauts](https://github.com/dirkrombauts)) + +### Fixed + +- Show inconclusive results in DHTML output ([463](https://github.com/picklesdoc/pickles/pull/463)) (by [@dirkrombauts](https://github.com/dirkrombauts)) + +### Changed + +- Under the hood: Move NDesk.Options dependency to command line runner ([459](https://github.com/picklesdoc/pickles/pull/459)) (by [@dirkrombauts](https://github.com/dirkrombauts)) +- Under the hood: update several third party packages ([462](https://github.com/picklesdoc/pickles/pull/462)) (by [@dirkrombauts](https://github.com/dirkrombauts)) + ## [2.15.0] - 2017-03-09 -## Added +### Added - Continue loading feature files after parsing errors ([445](https://github.com/picklesdoc/pickles/pull/445)) (by [@dirkrombauts](https://github.com/dirkrombauts), based on an idea by [@pleveill](https://github.com/pleveill)) diff --git a/DeployToChocolatey.cmd b/DeployToChocolatey.cmd index da005298a..8109e932a 100644 --- a/DeployToChocolatey.cmd +++ b/DeployToChocolatey.cmd @@ -1,7 +1,7 @@ @ECHO OFF REM this script supposes you set the chocolatey API key by running this command: -REM choco apikey -s"https://chocolatey.org/" -k="" +REM choco apikey -s"https://push.chocolatey.org/" -k="" REM Mind the trailing slash! .\packages\chocolatey\tools\chocolateyInstall\choco push .\deploy\chocolatey\pickles.%1.nupkg diff --git a/build.bat b/build.bat index 905f46acc..941c34c87 100644 --- a/build.bat +++ b/build.bat @@ -1,5 +1,5 @@ @echo off -set "picklesVersion=2.15.0" +set "picklesVersion=2.16.0" cls diff --git a/build.fsx b/build.fsx index 7372cdfc4..1910e1dac 100644 --- a/build.fsx +++ b/build.fsx @@ -105,6 +105,12 @@ Target "BuildTest.DocumentationBuilders.Word" (fun _ -> |> Log "AppBuild-Output: " ) +Target "BuildTest.Runners.CommandLine" (fun _ -> + !! "src/Pickles/Pickles.CommandLine.UnitTests/Pickles.CommandLine.UnitTests.csproj" + |> MSBuildRelease testDir "Build" + |> Log "AppBuild-Output: " +) + let createZip (packageType : string) = !! (buildDir + "/" + packageType + "/*.*") -- "*.zip" |> Zip (buildDir + packageType) (deployDir + "Pickles-" + packageType + "-" + version + ".zip") @@ -136,6 +142,7 @@ Target "Default" (fun _ -> ==> "BuildTest.DocumentationBuilders.Html" ==> "BuildTest.DocumentationBuilders.Json" ==> "BuildTest.DocumentationBuilders.Word" + ==> "BuildTest.Runners.CommandLine" ==> "Zip" ==> "Default" diff --git a/chocolatey.fsx b/chocolatey.fsx index 44ddcfc60..a5be9923d 100644 --- a/chocolatey.fsx +++ b/chocolatey.fsx @@ -66,7 +66,6 @@ Target "CreatePackage GUI" (fun _ -> guiDir + "MahApps.Metro.dll"; guiDir + "MarkdownDeep.dll"; guiDir + "Microsoft.Practices.ServiceLocation.dll"; - guiDir + "NDesk.Options.dll"; guiDir + "Newtonsoft.Json.dll"; guiDir + "NLog.dll"; guiDir + "NlogViewer.dll"; diff --git a/chocolatey/picklesui.nuspec b/chocolatey/picklesui.nuspec index 0e20f38b0..00e75d262 100644 --- a/chocolatey/picklesui.nuspec +++ b/chocolatey/picklesui.nuspec @@ -46,7 +46,6 @@ Optionally, *Pickles* can **integrate test results**, so that your stakeholders - diff --git a/docs/Output/Dhtml/Index.html b/docs/Output/Dhtml/Index.html index be4fc7695..52d0d283b 100644 --- a/docs/Output/Dhtml/Index.html +++ b/docs/Output/Dhtml/Index.html @@ -49,9 +49,9 @@
- +