diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml new file mode 100644 index 0000000..ef947b1 --- /dev/null +++ b/.github/workflows/dotnet-desktop.yml @@ -0,0 +1,119 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow will build, test, sign and package a WPF or Windows Forms desktop application +# built on .NET Core. +# To learn how to migrate your existing application to .NET Core, +# refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework +# +# To configure this workflow: +# +# 1. Configure environment variables +# GitHub sets default environment variables for every workflow run. +# Replace the variables relative to your project in the "env" section below. +# +# 2. Signing +# Generate a signing certificate in the Windows Application +# Packaging Project or add an existing signing certificate to the project. +# Next, use PowerShell to encode the .pfx file using Base64 encoding +# by running the following Powershell script to generate the output string: +# +# $pfx_cert = Get-Content '.\SigningCertificate.pfx' -Encoding Byte +# [System.Convert]::ToBase64String($pfx_cert) | Out-File 'SigningCertificate_Encoded.txt' +# +# Open the output file, SigningCertificate_Encoded.txt, and copy the +# string inside. Then, add the string to the repo as a GitHub secret +# and name it "Base64_Encoded_Pfx." +# For more information on how to configure your signing certificate for +# this workflow, refer to https://github.com/microsoft/github-actions-for-desktop-apps#signing +# +# Finally, add the signing certificate password to the repo as a secret and name it "Pfx_Key". +# See "Build the Windows Application Packaging project" below to see how the secret is used. +# +# For more information on GitHub Actions, refer to https://github.com/features/actions +# For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications, +# refer to https://github.com/microsoft/github-actions-for-desktop-apps + +name: .NET Core Desktop + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + + strategy: + matrix: + configuration: [Release] + + runs-on: windows-latest # For a list of available runner types, refer to + # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on + + env: + Solution_Name: SpecNuts # Replace with your solution name, i.e. MyWpfApp.sln. + Test_Project_Path: SpecNuts\tests\SpecNuts.Test.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. + Wap_Project_Directory: SpecNuts # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package. + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + # Install the .NET Core workload + - name: Install .NET Core + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + + # Execute all unit tests in the solution +# - name: Execute unit tests +# run: dotnet test + + # Restore the application to populate the obj folder with RuntimeIdentifiers + - name: Build the application + run: dotnet build $env:Solution_Name /p:Configuration=$env:Configuration -o ${{ env.Wap_Project_Directory }}\AppPackages + env: + Configuration: ${{ matrix.configuration }} + + # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: MSIX Package + path: ${{ env.Wap_Project_Directory }}\AppPackages + + - name: setup nuget + run: dotnet nuget add source --username kaladinStorm84 --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/kaladinstorm84/index.json" + - name: Publish NuGet + # You may pin to the exact commit or the version. + # uses: brandedoutcast/publish-nuget@c12b8546b67672ee38ac87bea491ac94a587f7cc + uses: brandedoutcast/publish-nuget@v2.5.5 + with: + # Filepath of the project to be packaged, relative to root of repository + PROJECT_FILE_PATH: SpecNuts\SpecNuts\SpecNuts.csproj + # NuGet package id, used for version detection & defaults to project name + PACKAGE_NAME: SpecNuts.nupkg + # Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH + #VERSION_FILE_PATH: # optional + # Regex pattern to extract version info in a capturing group + #VERSION_REGEX: # optional, default is ^\s*(.*)<\/Version>\s*$ + # Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX + #VERSION_STATIC: # optional + # Flag to toggle git tagging, enabled by default + #TAG_COMMIT: # optional, default is true + # Format of the git tag, [*] gets replaced with actual version + #TAG_FORMAT: # optional, default is v* + # API key to authenticate with NuGet server + #NUGET_KEY: # optional + # NuGet server uri hosting the packages, defaults to https://api.nuget.org + NUGET_SOURCE: github # optional, default is https://api.nuget.org + # Flag to toggle pushing symbols along with nuget package to the server, disabled by default + # INCLUDE_SYMBOLS: # optional + diff --git a/.vs/ProjectEvaluation/specnuts.metadata.v7.bin b/.vs/ProjectEvaluation/specnuts.metadata.v7.bin new file mode 100644 index 0000000..13b9484 Binary files /dev/null and b/.vs/ProjectEvaluation/specnuts.metadata.v7.bin differ diff --git a/.vs/ProjectEvaluation/specnuts.projects.v7.bin b/.vs/ProjectEvaluation/specnuts.projects.v7.bin new file mode 100644 index 0000000..2384a9e Binary files /dev/null and b/.vs/ProjectEvaluation/specnuts.projects.v7.bin differ diff --git a/.vs/SpecNuts/ColorByRegexConfig.txt b/.vs/SpecNuts/ColorByRegexConfig.txt new file mode 100644 index 0000000..8238013 --- /dev/null +++ b/.vs/SpecNuts/ColorByRegexConfig.txt @@ -0,0 +1,10 @@ +// This file contains rules to color document tabs by regular expressions. Each line contains a regular expression that will be tested against a file's full path. All files matching a regular expression will share a color. +// You can customize the color assigned to any group of files by right-clicking the tab and choosing "Set Tab Color." +// Regular expressions will be matched in the order they appear in this file. See https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expressions for syntax. +// Regular expressions are matched as case-insensitive by default. You can override this behavior using capture group options like "(?-i:expression)". +// Edit this file and save your changes to see changes immediately applied. Any errors encountered during parsing or evaluating expressions will appear in the Output Window in a pane named "Color by Regular Expression." +^.*\.cs$ +^.*\.fs$ +^.*\.vb$ +^.*\.cp?p?$ +^.*\.hp?p?$ diff --git a/.vs/SpecNuts/DesignTimeBuild/.dtbcache.v2 b/.vs/SpecNuts/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..45b24ac Binary files /dev/null and b/.vs/SpecNuts/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/SpecNuts/FileContentIndex/cbe2c715-d19a-4c4d-8088-11ada178a3f2.vsidx b/.vs/SpecNuts/FileContentIndex/cbe2c715-d19a-4c4d-8088-11ada178a3f2.vsidx new file mode 100644 index 0000000..df1a2c3 Binary files /dev/null and b/.vs/SpecNuts/FileContentIndex/cbe2c715-d19a-4c4d-8088-11ada178a3f2.vsidx differ diff --git a/.vs/SpecNuts/FileContentIndex/dc379b11-8410-44f6-881f-6cfb264a624d.vsidx b/.vs/SpecNuts/FileContentIndex/dc379b11-8410-44f6-881f-6cfb264a624d.vsidx new file mode 100644 index 0000000..673b6e2 Binary files /dev/null and b/.vs/SpecNuts/FileContentIndex/dc379b11-8410-44f6-881f-6cfb264a624d.vsidx differ diff --git a/.vs/SpecNuts/FileContentIndex/read.lock b/.vs/SpecNuts/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/.vs/SpecNuts/v17/.futdcache.v2 b/.vs/SpecNuts/v17/.futdcache.v2 new file mode 100644 index 0000000..67c7b10 Binary files /dev/null and b/.vs/SpecNuts/v17/.futdcache.v2 differ diff --git a/.vs/SpecNuts/v17/.wsuo b/.vs/SpecNuts/v17/.wsuo new file mode 100644 index 0000000..15a9edc Binary files /dev/null and b/.vs/SpecNuts/v17/.wsuo differ diff --git a/.vs/SpecNuts/v17/TestStore/0/000.testlog b/.vs/SpecNuts/v17/TestStore/0/000.testlog new file mode 100644 index 0000000..d491a6b Binary files /dev/null and b/.vs/SpecNuts/v17/TestStore/0/000.testlog differ diff --git a/.vs/SpecNuts/v17/TestStore/0/testlog.manifest b/.vs/SpecNuts/v17/TestStore/0/testlog.manifest new file mode 100644 index 0000000..e92ede2 Binary files /dev/null and b/.vs/SpecNuts/v17/TestStore/0/testlog.manifest differ diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..61a809e --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,7 @@ +{ + "ExpandedNodes": [ + "" + ], + "SelectedNode": "\\SpecNuts.sln", + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/SpecNuts.ApprovalTestSuite/Properties/AssemblyInfo.cs b/SpecNuts.ApprovalTestSuite/Properties/AssemblyInfo.cs index 4444e0a..ebc9cd0 100644 --- a/SpecNuts.ApprovalTestSuite/Properties/AssemblyInfo.cs +++ b/SpecNuts.ApprovalTestSuite/Properties/AssemblyInfo.cs @@ -1,18 +1,5 @@ using System.Reflection; using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("SpecNuts.ApprovalTestSuite")] -[assembly: - AssemblyDescription( - "A forked from SpecResults.ApprovalTestSuite project to provide the ability to generate json file in cucumber format.")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("William Sia")] -[assembly: AssemblyProduct("SpecNuts.ApprovalTestSuite")] -[assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -25,17 +12,3 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("a5289c34-47cc-4acf-80ef-d286a5779959")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] - -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/SpecNuts.ApprovalTestSuite/SpecNuts.ApprovalTestSuite.csproj b/SpecNuts.ApprovalTestSuite/SpecNuts.ApprovalTestSuite.csproj index 8b4cd29..e3f7978 100644 --- a/SpecNuts.ApprovalTestSuite/SpecNuts.ApprovalTestSuite.csproj +++ b/SpecNuts.ApprovalTestSuite/SpecNuts.ApprovalTestSuite.csproj @@ -1,134 +1,57 @@ - - - + - Debug - AnyCPU - {BBA703FA-94C4-437F-9961-2A321163988A} + net6.0 Library - Properties SpecResults.ApprovalTestSuite SpecResults.ApprovalTestSuite - v4.6 - 512 - ..\ true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false + false bin\Build Nuget Packages\ - TRACE true - pdbonly - AnyCPU - prompt MinimumRecommendedRules.ruleset - false bin\NuGet\ - TRACE true - pdbonly - AnyCPU - prompt MinimumRecommendedRules.ruleset - false - - - ..\packages\ApprovalTests.3.0.5\lib\net40\ApprovalTests.dll - - - ..\packages\ApprovalUtilities.3.0.5\lib\net35\ApprovalUtilities.dll - - - - ..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll - - - ..\packages\NUnit.2.6.3\lib\nunit.framework.dll - - - - - - - - - ..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll - - - ..\packages\SpecFlow.2.3.1\lib\net45\TechTalk.SpecFlow.dll - - - - - True - True - TestSuite.feature - - - - - - - - + SpecFlowSingleFileGenerator TestSuite.feature.cs - - {c830c923-5398-4f28-99c2-1592ee5f4f7b} - SpecNuts.Json - - - {eaba391e-6b65-4e5c-8842-3d71a5f97b4f} - SpecNuts - + + - - + + + + + + + + + - - + SpecNuts.ApprovalTestSuite + A forked from SpecResults.ApprovalTestSuite project to provide the ability to generate json file in cucumber format. + William Sia + SpecNuts.ApprovalTestSuite + Copyright © 2016 + 1.0.0.0 + 1.0.0.0 - - \ No newline at end of file diff --git a/SpecNuts.ApprovalTestSuite/Steps.ApprovalTests.cs b/SpecNuts.ApprovalTestSuite/Steps.ApprovalTests.cs index fd7adb1..5cef5de 100644 --- a/SpecNuts.ApprovalTestSuite/Steps.ApprovalTests.cs +++ b/SpecNuts.ApprovalTestSuite/Steps.ApprovalTests.cs @@ -4,6 +4,7 @@ using System.Text; using ApprovalTests.Core; using ApprovalTests.Reporters; +using ApprovalTests.Reporters.TestFrameworks; using SpecNuts; using Approvals = ApprovalTests.Approvals; diff --git a/SpecNuts.ApprovalTestSuite/TestSuite.feature.cs b/SpecNuts.ApprovalTestSuite/TestSuite.feature.cs deleted file mode 100644 index d9876ff..0000000 --- a/SpecNuts.ApprovalTestSuite/TestSuite.feature.cs +++ /dev/null @@ -1,258 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by SpecFlow (http://www.specflow.org/). -// SpecFlow Version:2.1.0.0 -// SpecFlow Generator Version:2.0.0.0 -// -// 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 SpecResults.ApprovalTestSuite -{ - using TechTalk.SpecFlow; - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "2.1.0.0")] - [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [NUnit.Framework.TestFixtureAttribute()] - [NUnit.Framework.DescriptionAttribute("Test Suite")] - [NUnit.Framework.CategoryAttribute("Category:SomeFeatureCategory")] - public partial class TestSuiteFeature - { - - private TechTalk.SpecFlow.ITestRunner testRunner; - -#line 1 "TestSuite.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"), "Test Suite", "\tIn order to test my reporter plugin\r\n\tAs a developer\r\n\tI want to run a predefine" + - "d test suite", ProgrammingLanguage.CSharp, new string[] { - "Category:SomeFeatureCategory"}); - 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("Single scenario")] - [NUnit.Framework.CategoryAttribute("SomeTag")] - public virtual void SingleScenario() - { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Single scenario", new string[] { - "SomeTag"}); -#line 8 -this.ScenarioSetup(scenarioInfo); -#line 9 - testRunner.Given("a scenario is specified", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 10 - testRunner.When("the tests run", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 11 - testRunner.Then("a report is generated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden - this.ScenarioCleanup(); - } - - [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("Steps contain arguments")] - public virtual void StepsContainArguments() - { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Steps contain arguments", ((string[])(null))); -#line 13 -this.ScenarioSetup(scenarioInfo); -#line 14 - testRunner.Given("a \"awesome\" scenario is specified", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 15 - testRunner.When("the tests with \"multiple\" parameters run \"smoothly\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 16 - testRunner.Then("\"1\" report is generated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden - this.ScenarioCleanup(); - } - - [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("Steps contain multi arguments")] - public virtual void StepsContainMultiArguments() - { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Steps contain multi arguments", ((string[])(null))); -#line 18 -this.ScenarioSetup(scenarioInfo); -#line hidden -#line 19 - testRunner.Given("a \"awesome\" scenario is specified with a multi-line argument", "Here we go with mulitiple\r\nlines!", ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line hidden -#line 24 - testRunner.When("the tests with multiple line parameters", "like\r\nthis \r\none", ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 30 - testRunner.Then("\"1\" report is generated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden - this.ScenarioCleanup(); - } - - [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("Step is not implemented")] - public virtual void StepIsNotImplemented() - { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Step is not implemented", ((string[])(null))); -#line 32 -this.ScenarioSetup(scenarioInfo); -#line 33 - testRunner.Given("a scenario is specified", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 34 - testRunner.When("a step is not implemented", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 35 - testRunner.Then("a report is generated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden - this.ScenarioCleanup(); - } - - [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("Table param")] - public virtual void TableParam() - { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Table param", ((string[])(null))); -#line 37 -this.ScenarioSetup(scenarioInfo); -#line 38 - testRunner.Given("a scenario is specified", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line hidden - TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { - "Id", - "Name"}); - table1.AddRow(new string[] { - "1", - "John Doe"}); - table1.AddRow(new string[] { - "2", - "Some Dude"}); - table1.AddRow(new string[] { - "3", - "Any Guy"}); -#line 39 - testRunner.When("the a step contains a table and a \"second\" param:", ((string)(null)), table1, "When "); -#line 44 - testRunner.Then("a report is generated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden - this.ScenarioCleanup(); - } - - [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("Step uses method-name undescores style")] - public virtual void StepUsesMethod_NameUndescoresStyle() - { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Step uses method-name undescores style", ((string[])(null))); -#line 46 -this.ScenarioSetup(scenarioInfo); -#line 47 - testRunner.Given("a scenario is specified", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 48 - testRunner.When("a step uses method-name style", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 49 - testRunner.When("a step uses method-name style with two parameters", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 50 - testRunner.Then("a report is generated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden - this.ScenarioCleanup(); - } - - [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("Step uses method-name undescores style with table param")] - public virtual void StepUsesMethod_NameUndescoresStyleWithTableParam() - { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Step uses method-name undescores style with table param", ((string[])(null))); -#line 52 -this.ScenarioSetup(scenarioInfo); -#line 53 - testRunner.Given("a scenario is specified", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line hidden - TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { - "Id", - "Name"}); - table2.AddRow(new string[] { - "1", - "John Doe"}); - table2.AddRow(new string[] { - "2", - "Some Dude"}); - table2.AddRow(new string[] { - "3", - "Any Guy"}); -#line 54 - testRunner.When("a step uses method-name underscore style with a table param and a second param:", ((string)(null)), table2, "When "); -#line 59 - testRunner.Then("a report is generated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden - this.ScenarioCleanup(); - } - - [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("Nested step")] - public virtual void NestedStep() - { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Nested step", ((string[])(null))); -#line 61 -this.ScenarioSetup(scenarioInfo); -#line 62 - testRunner.Given("a scenario is specified", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 63 - testRunner.When("a child step was executed", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 64 - testRunner.Then("a report is generated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden - this.ScenarioCleanup(); - } - - [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("eating")] - [NUnit.Framework.TestCaseAttribute("12", "5", "7", new string[0])] - [NUnit.Framework.TestCaseAttribute("20", "5", "15", new string[0])] - public virtual void Eating(string start, string eat, string left, string[] exampleTags) - { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("eating", exampleTags); -#line 66 -this.ScenarioSetup(scenarioInfo); -#line 67 - testRunner.Given(string.Format("there are {0} cucumbers", start), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 68 - testRunner.When(string.Format("I eat {0} cucumbers", eat), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 69 - testRunner.Then(string.Format("I should have {0} cucumbers", left), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden - this.ScenarioCleanup(); - } - } -} -#pragma warning restore -#endregion diff --git a/SpecNuts.ApprovalTestSuite/packages.config b/SpecNuts.ApprovalTestSuite/packages.config deleted file mode 100644 index ea40ead..0000000 --- a/SpecNuts.ApprovalTestSuite/packages.config +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/SpecNuts.Json/Properties/AssemblyInfo.cs b/SpecNuts.Json/Properties/AssemblyInfo.cs index 70a9272..f01506d 100644 --- a/SpecNuts.Json/Properties/AssemblyInfo.cs +++ b/SpecNuts.Json/Properties/AssemblyInfo.cs @@ -1,16 +1,5 @@ using System.Reflection; using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("SpecNuts.Json")] -[assembly: AssemblyDescription("A forked from SpecResults.Json project to provide the ability to generate json file in cucumber format.")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("William Sia")] -[assembly: AssemblyProduct("SpecNuts.Json")] -[assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -23,17 +12,3 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("4ebe0eb3-a53b-4bda-91aa-187a31592ff7")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] - -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] \ No newline at end of file diff --git a/SpecNuts.Json/SpecNuts.Json.csproj b/SpecNuts.Json/SpecNuts.Json.csproj index 0207946..91ad108 100644 --- a/SpecNuts.Json/SpecNuts.Json.csproj +++ b/SpecNuts.Json/SpecNuts.Json.csproj @@ -1,107 +1,38 @@ - - - + - Debug - AnyCPU - {C830C923-5398-4F28-99C2-1592EE5F4F7B} + net6.0 Library - Properties - SpecNuts.Json - SpecNuts.Json - v4.6 - 512 - ..\..\ true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false + false bin\Build Nuget Packages\ - TRACE true - pdbonly - AnyCPU - prompt MinimumRecommendedRules.ruleset bin\Build Nuget Packages\SpecNuts.Json.xml - false bin\NuGet\ - TRACE true - pdbonly - AnyCPU - prompt MinimumRecommendedRules.ruleset - false - - - - - - - - - ..\packages\Newtonsoft.Json.11.0.1\lib\net45\Newtonsoft.Json.dll - - - ..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll - - - ..\packages\SpecFlow.2.3.1\lib\net45\TechTalk.SpecFlow.dll - - - - - - - - - - - - + - - {eaba391e-6b65-4e5c-8842-3d71a5f97b4f} - SpecNuts - + + + + - - - - + SpecNuts.Json + A forked from SpecResults.Json project to provide the ability to generate json file in cucumber format. + William Sia + SpecNuts.Json + Copyright © 2016 + 1.1.0.0 + 1.1.0.0 - - \ No newline at end of file diff --git a/SpecNuts.Json/packages.config b/SpecNuts.Json/packages.config deleted file mode 100644 index c6a5434..0000000 --- a/SpecNuts.Json/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/SpecNuts.UnitTests/Properties/AssemblyInfo.cs b/SpecNuts.UnitTests/Properties/AssemblyInfo.cs index 7a2dbfc..89b65d1 100644 --- a/SpecNuts.UnitTests/Properties/AssemblyInfo.cs +++ b/SpecNuts.UnitTests/Properties/AssemblyInfo.cs @@ -1,16 +1,5 @@ using System.Reflection; using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("SpecResults.UnitTests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("SpecResults.UnitTests")] -[assembly: AssemblyCopyright("Copyright © 2014")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -23,17 +12,3 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("fdba9fc2-64df-467a-a836-654e5bc76d96")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] - -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/SpecNuts.UnitTests/SpecNuts.UnitTests.csproj b/SpecNuts.UnitTests/SpecNuts.UnitTests.csproj index 2d00a0f..13a4ad1 100644 --- a/SpecNuts.UnitTests/SpecNuts.UnitTests.csproj +++ b/SpecNuts.UnitTests/SpecNuts.UnitTests.csproj @@ -1,72 +1,29 @@ - - - + - Debug - AnyCPU - {95C18142-2C66-4CA9-8F63-A9B7F65A1820} + net6.0 Library - Properties SpecResults.UnitTests SpecResults.UnitTests - v4.6 - 512 ..\ true - + false + SpecResults.UnitTests + SpecResults.UnitTests + Copyright © 2014 + 1.0.0.0 + 1.0.0.0 - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\NUnit.2.6.3\lib\nunit.framework.dll - - - - - - - - - - - + - - {eaba391e-6b65-4e5c-8842-3d71a5f97b4f} - SpecNuts - + + - + - + - - - \ No newline at end of file diff --git a/SpecNuts.UnitTests/packages.config b/SpecNuts.UnitTests/packages.config deleted file mode 100644 index ad37a52..0000000 --- a/SpecNuts.UnitTests/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/SpecNuts.sln b/SpecNuts.sln index 3ee49c7..34696f5 100644 --- a/SpecNuts.sln +++ b/SpecNuts.sln @@ -1,9 +1,9 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27703.2026 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpecNuts", "SpecNuts\SpecNuts.csproj", "{EABA391E-6B65-4E5C-8842-3D71A5F97B4F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SpecNuts", "SpecNuts\SpecNuts.csproj", "{EABA391E-6B65-4E5C-8842-3D71A5F97B4F}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "etc", "etc", "{F06106DF-9C40-4F90-9F2A-5B9FF00874BC}" ProjectSection(SolutionItems) = preProject @@ -23,11 +23,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{0A9B592E-B EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0775EB2A-C4C3-421A-BF01-C4E3C96BD52B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpecNuts.Json", "SpecNuts.Json\SpecNuts.Json.csproj", "{C830C923-5398-4F28-99C2-1592EE5F4F7B}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SpecNuts.Json", "SpecNuts.Json\SpecNuts.Json.csproj", "{C830C923-5398-4F28-99C2-1592EE5F4F7B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpecNuts.UnitTests", "SpecNuts.UnitTests\SpecNuts.UnitTests.csproj", "{95C18142-2C66-4CA9-8F63-A9B7F65A1820}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SpecNuts.UnitTests", "SpecNuts.UnitTests\SpecNuts.UnitTests.csproj", "{95C18142-2C66-4CA9-8F63-A9B7F65A1820}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpecNuts.ApprovalTestSuite", "SpecNuts.ApprovalTestSuite\SpecNuts.ApprovalTestSuite.csproj", "{BBA703FA-94C4-437F-9961-2A321163988A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SpecNuts.ApprovalTestSuite", "SpecNuts.ApprovalTestSuite\SpecNuts.ApprovalTestSuite.csproj", "{BBA703FA-94C4-437F-9961-2A321163988A}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{934F2AA5-2817-413A-A950-EE8A304AD294}" ProjectSection(SolutionItems) = preProject diff --git a/SpecNuts/Properties/AssemblyInfo.cs b/SpecNuts/Properties/AssemblyInfo.cs index ed3f4bf..9698c52 100644 --- a/SpecNuts/Properties/AssemblyInfo.cs +++ b/SpecNuts/Properties/AssemblyInfo.cs @@ -1,15 +1,6 @@ using System.Reflection; using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("SpecNuts")] -[assembly: AssemblyDescription("A forked from SpecResults project to provide the ability to generate test result in cucumber format.")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("William Sia")] -[assembly: AssemblyProduct("SpecNuts")] -[assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Guid("301e04c6-bc1b-4da4-83f0-5fdf76fea8bb")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] \ No newline at end of file diff --git a/SpecNuts/SpecNuts.csproj b/SpecNuts/SpecNuts.csproj index fbae2d5..509912c 100644 --- a/SpecNuts/SpecNuts.csproj +++ b/SpecNuts/SpecNuts.csproj @@ -1,124 +1,37 @@ - - - + - Debug - AnyCPU - {EABA391E-6B65-4E5C-8842-3D71A5F97B4F} + net6.0 Library - Properties - SpecNuts - SpecNuts - v4.6 - 512 - ..\ true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false + false + SpecNuts + A forked from SpecResults project to provide the ability to generate test result in cucumber format. + William Sia + SpecNuts + Copyright © 2016 + 1.1.0.0 + 1.1.0.0 bin\Build Nuget Packages\ - TRACE true - pdbonly - AnyCPU - prompt MinimumRecommendedRules.ruleset bin\Build Nuget Packages\SpecNuts.xml - false bin\NuGet\ - TRACE true - pdbonly - AnyCPU - prompt MinimumRecommendedRules.ruleset - false - - ..\packages\MarkdownSharp.1.13.0.0\lib\35\MarkdownSharp.dll - - - - - - - - - - ..\packages\Newtonsoft.Json.11.0.1\lib\net45\Newtonsoft.Json.dll - - - ..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll - - - ..\packages\SpecFlow.2.3.1\lib\net45\TechTalk.SpecFlow.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - + + + + + - - - - \ No newline at end of file diff --git a/SpecNuts/packages.config b/SpecNuts/packages.config deleted file mode 100644 index 5c7712a..0000000 --- a/SpecNuts/packages.config +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file