diff --git a/CHANGES.txt b/CHANGES.txt new file mode 100644 index 0000000..49ae5dc --- /dev/null +++ b/CHANGES.txt @@ -0,0 +1,6 @@ +teamcity-event-listener 1.0.2 - Oct 1, 2016 + +Issues Resolved + + * 0006 TeamCity does not parse service messages inside errors/output of tests + * 0014 Erroneous TeamCity service messages with multiple test assemblies and (default) parallel execution \ No newline at end of file diff --git a/build.cake b/build.cake index 476eecd..7c9b204 100644 --- a/build.cake +++ b/build.cake @@ -13,6 +13,9 @@ var configuration = Argument("configuration", "Debug"); var version = "1.0.2"; var modifier = ""; +var versionsOfNunitCore = new [] {"3.4.1", ""}; + +var integrationTestsCategories = new List(); var dbgSuffix = configuration == "Debug" ? "-dbg" : ""; var packageVersion = version + modifier + dbgSuffix; @@ -166,37 +169,13 @@ Task("BuildForIntegrationTests") }); ////////////////////////////////////////////////////////////////////// -// INITIALIZE FOR INTEGRATION TEST +// ADD TEAMCITY TEST CATEGORY ////////////////////////////////////////////////////////////////////// -Task("InitializeForIntegrationTests") +Task("AddTeamCityTestCategory") .Does(() => { - EnsureDirectoryExists(TEST_NUNIT_DIR); - EnsureDirectoryExists(TEST_PACKAGES_DIR); - CleanDirectories(TEST_NUNIT_DIR + "**/*.*"); - CleanDirectories(TEST_PACKAGES_DIR + "**/*.*"); - - NuGetInstall(new [] {"NUnit.Runners", "NUnit"}, new NuGetInstallSettings() - { - OutputDirectory = TEST_NUNIT_DIR, - Source = PRERELEASE_PACKAGE_SOURCE, - Prerelease = true, - NoCache = true - }); - - NuGetInstall(new [] {"NUnit"}, new NuGetInstallSettings() - { - Version = "2.6.4", - OutputDirectory = TEST_PACKAGES_DIR, - Source = PACKAGE_SOURCE, - Prerelease = true, - NoCache = true - }); - - CleanDirectories(TEST_NUNIT_DIR + "NUnit.Extension.TeamCityEventListener*"); - EnsureDirectoryExists(TEST_TEAMCITY_EXT_DIR); - CopyFileToDirectory(BIN_DIR + "teamcity-event-listener.dll", TEST_TEAMCITY_EXT_DIR); + integrationTestsCategories.Add("cat==teamcity"); }); ////////////////////////////////////////////////////////////////////// @@ -206,23 +185,71 @@ Task("InitializeForIntegrationTests") Task("IntegrationTest") .IsDependentOn("Build") .IsDependentOn("BuildForIntegrationTests") - .IsDependentOn("InitializeForIntegrationTests") .Does(() => { - int rc = StartProcess( - NUNIT3_CONSOLE, - new ProcessSettings() + foreach(var nunitCoreVersion in versionsOfNunitCore) + { + EnsureDirectoryExists(TEST_NUNIT_DIR); + EnsureDirectoryExists(TEST_PACKAGES_DIR); + CleanDirectories(TEST_NUNIT_DIR + "**/*.*"); + CleanDirectories(TEST_PACKAGES_DIR + "**/*.*"); + + NuGetInstall(new [] {"NUnit", "NUnit.ConsoleRunner", "NUnit.Extension.NUnitProjectLoader", "NUnit.Extension.NUnitV2Driver" }, new NuGetInstallSettings() + { + Version = nunitCoreVersion == string.Empty ? null : nunitCoreVersion, + OutputDirectory = TEST_NUNIT_DIR, + Source = nunitCoreVersion == string.Empty ? PRERELEASE_PACKAGE_SOURCE : PACKAGE_SOURCE, + Prerelease = (nunitCoreVersion == string.Empty), + NoCache = true + }); + + NuGetInstall(new [] {"NUnit"}, new NuGetInstallSettings() + { + Version = "2.6.4", + OutputDirectory = TEST_PACKAGES_DIR, + Source = PACKAGE_SOURCE, + Prerelease = false, + NoCache = true + }); + + CleanDirectories(TEST_NUNIT_DIR + "NUnit.Extension.TeamCityEventListener*"); + EnsureDirectoryExists(TEST_TEAMCITY_EXT_DIR); + CopyFileToDirectory(BIN_DIR + "teamcity-event-listener.dll", TEST_TEAMCITY_EXT_DIR); + + var versionCategories = string.Join( + "||", + versionsOfNunitCore + .TakeWhile(i => i != nunitCoreVersion) + .Concat(Enumerable.Repeat(nunitCoreVersion, 1)) + .Select(i => "cat==" + (string.IsNullOrEmpty(i) ? "dev" : i))); + + var categoriesList = + integrationTestsCategories + .Concat(Enumerable.Repeat(versionCategories, 1)) + .Where(i => !string.IsNullOrEmpty(i)) + .Select(i => "(" + i + ")").ToList(); + + var arguments = INTEGRATION_TEST_ASSEMBLY; + if (categoriesList.Count!= 0) { - Arguments = INTEGRATION_TEST_ASSEMBLY - }); + arguments += " --where \"" + string.Join("&&", categoriesList) + "\""; + } - if (rc != 0) - { - var message = rc > 0 - ? string.Format("Test failure: {0} tests failed", rc) - : string.Format("Test exited with rc = {0}", rc); + int rc = StartProcess( + NUNIT3_CONSOLE, + new ProcessSettings() + { + Arguments = arguments + }); - throw new CakeException(message); + if (rc != 0) + { + var message = rc > 0 + ? string.Format("Test failure: {0} tests failed", rc) + : string.Format("Test exited with rc = {0}", rc); + + throw new CakeException(message); + } } }); @@ -256,6 +283,13 @@ Task("Rebuild") Task("Appveyor") .IsDependentOn("Build") .IsDependentOn("Test") + .IsDependentOn("AddTeamCityTestCategory") + .IsDependentOn("IntegrationTest") + .IsDependentOn("Package"); + +Task("CheckIntegration") + .IsDependentOn("Build") + .IsDependentOn("Test") .IsDependentOn("IntegrationTest") .IsDependentOn("Package"); diff --git a/src/extension/Properties/AssemblyInfo.cs b/src/extension/Properties/AssemblyInfo.cs index 2a947bb..3e2e633 100644 --- a/src/extension/Properties/AssemblyInfo.cs +++ b/src/extension/Properties/AssemblyInfo.cs @@ -1,16 +1,15 @@ using System.Reflection; -using System.Runtime.CompilerServices; 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("teamcity-event-listener")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("NUnit Engine extension that helps integration with TeamCity.")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("teamcity-event-listener")] -[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -32,5 +31,5 @@ // 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.1.0")] -[assembly: AssemblyFileVersion("1.0.1.0")] +[assembly: AssemblyVersion("1.0.2.0")] +[assembly: AssemblyFileVersion("1.0.2.0")] diff --git a/src/nunit.integration.tests/AppConfig.feature b/src/nunit.integration.tests/AppConfig.feature index 116ef97..a0663db 100644 --- a/src/nunit.integration.tests/AppConfig.feature +++ b/src/nunit.integration.tests/AppConfig.feature @@ -3,6 +3,7 @@ Background: Given NUnit path is ..\nunit\ +@3.4.1 Scenario Outline: I can the test with config file Given Framework version is And I have added successfulWithConfig method as SuccessfulTest to the class Foo.Tests.UnitTests1 for foo.tests @@ -22,8 +23,6 @@ Scenario Outline: I can the test with config file | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - - Examples: | configurationType | frameworkVersion | | CmdArguments | Version45 | @@ -31,6 +30,7 @@ Examples: | ProjectFile | Version45 | | ProjectFile | Version40 | +@3.4.1 Scenario Outline: I can the test with config file for several assemblies using the command line for the list of assemblies Given Framework version is And I have added successfulWithConfig method as SuccessfulTest to the class Foo1.Tests.UnitTests1 for foo1.tests @@ -73,14 +73,12 @@ Scenario Outline: I can the test with config file for several assemblies using t | testFinished | Foo2.Tests.UnitTests1.SuccessfulTest | | | flowFinished | | | | testSuiteFinished | foo2.tests.dll | | - - - Examples: | configurationType | frameworkVersion | | CmdArguments | Version45 | | CmdArguments | Version40 | +@3.4.1 Scenario Outline: I can the test with config file for several assemblies using the project file for the list of assemblies Given Framework version is And I have added successfulWithConfig method as SuccessfulTest to the class Foo1.Tests.UnitTests1 for foo1.tests @@ -123,9 +121,6 @@ Scenario Outline: I can the test with config file for several assemblies using t | testFinished | Foo2.Tests.UnitTests1.SuccessfulTest | | | flowFinished | | | | testSuiteFinished | foo2.tests.dll | | - - - Examples: | configurationType | frameworkVersion | | ProjectFile | Version45 | diff --git a/src/nunit.integration.tests/AppConfig.feature.cs b/src/nunit.integration.tests/AppConfig.feature.cs index 1f2a3db..758ef0a 100644 --- a/src/nunit.integration.tests/AppConfig.feature.cs +++ b/src/nunit.integration.tests/AppConfig.feature.cs @@ -73,39 +73,46 @@ public virtual void FeatureBackground() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can the test with config file")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.TestCaseAttribute("CmdArguments", "Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("CmdArguments", "Version40", new string[0])] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version40", new string[0])] public virtual void ICanTheTestWithConfigFile(string configurationType, string frameworkVersion, string[] exampleTags) { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can the test with config file", exampleTags); -#line 6 + string[] @__tags = new string[] { + "3.4.1"}; + if ((exampleTags != null)) + { + @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); + } + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can the test with config file", @__tags); +#line 7 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 7 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 9 testRunner.And("I have added successfulWithConfig method as SuccessfulTest to the class Foo.Tests" + ".UnitTests1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 9 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 - testRunner.And("I have added config file mocks\\foo.tests.dll.config", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added config file mocks\\foo.tests.dll.config", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 - testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line 18 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { @@ -126,7 +133,7 @@ public virtual void ICanTheTestWithConfigFile(string configurationType, string f table1.AddRow(new string[] { "Skipped", "0"}); -#line 18 +#line 19 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table1, "And "); #line hidden this.ScenarioCleanup(); @@ -135,12 +142,19 @@ public virtual void ICanTheTestWithConfigFile(string configurationType, string f [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can the test with config file for several assemblies using the command line for" + " the list of assemblies")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.TestCaseAttribute("CmdArguments", "Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("CmdArguments", "Version40", new string[0])] public virtual void ICanTheTestWithConfigFileForSeveralAssembliesUsingTheCommandLineForTheListOfAssemblies(string configurationType, string frameworkVersion, string[] exampleTags) { + string[] @__tags = new string[] { + "3.4.1"}; + if ((exampleTags != null)) + { + @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); + } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can the test with config file for several assemblies using the command line for" + - " the list of assemblies", exampleTags); + " the list of assemblies", @__tags); #line 34 this.ScenarioSetup(scenarioInfo); #line 3 @@ -274,53 +288,60 @@ public virtual void ICanTheTestWithConfigFileForSeveralAssembliesUsingTheCommand [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can the test with config file for several assemblies using the project file for" + " the list of assemblies")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version40", new string[0])] public virtual void ICanTheTestWithConfigFileForSeveralAssembliesUsingTheProjectFileForTheListOfAssemblies(string configurationType, string frameworkVersion, string[] exampleTags) { + string[] @__tags = new string[] { + "3.4.1"}; + if ((exampleTags != null)) + { + @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); + } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can the test with config file for several assemblies using the project file for" + - " the list of assemblies", exampleTags); -#line 84 + " the list of assemblies", @__tags); +#line 82 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 85 +#line 83 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 86 +#line 84 testRunner.And("I have added successfulWithConfig method as SuccessfulTest to the class Foo1.Test" + "s.UnitTests1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 87 +#line 85 testRunner.And("I have added successfulWithConfig method as SuccessfulTest to the class Foo2.Test" + "s.UnitTests1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 88 +#line 86 testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 89 +#line 87 testRunner.And("I have added NUnit framework references to foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 90 +#line 88 testRunner.And("I have added NUnit framework references to foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 91 +#line 89 testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 92 +#line 90 testRunner.And("I have compiled the assembly foo1.tests to file mocks\\foo1.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 93 +#line 91 testRunner.And("I have compiled the assembly foo2.tests to file mocks\\foo2.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 94 +#line 92 testRunner.And("I have added config file mocks\\foo1.tests.dll.config", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 95 +#line 93 testRunner.And("I have added config file mocks\\foo2.tests.dll.config", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 96 +#line 94 testRunner.And("I have added the assembly mocks\\foo1.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 97 +#line 95 testRunner.And("I have added the assembly mocks\\foo2.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 98 +#line 96 testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 99 +#line 97 testRunner.And("I have added the arg Agents=0 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 100 +#line 98 testRunner.And("I have added the arg TeamCity to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 101 +#line 99 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 102 +#line 100 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { @@ -341,7 +362,7 @@ public virtual void ICanTheTestWithConfigFileForSeveralAssembliesUsingTheProject table4.AddRow(new string[] { "Skipped", "0"}); -#line 103 +#line 101 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table4, "And "); #line hidden TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { @@ -404,7 +425,7 @@ public virtual void ICanTheTestWithConfigFileForSeveralAssembliesUsingTheProject "testSuiteFinished", "foo2.tests.dll", ""}); -#line 110 +#line 108 testRunner.And("the output should contain TeamCity service messages:", ((string)(null)), table5, "And "); #line hidden this.ScenarioCleanup(); diff --git a/src/nunit.integration.tests/ExcludeIncludeTests.feature b/src/nunit.integration.tests/ExcludeIncludeTests.feature index 24dc8a0..0fd1406 100644 --- a/src/nunit.integration.tests/ExcludeIncludeTests.feature +++ b/src/nunit.integration.tests/ExcludeIncludeTests.feature @@ -2,7 +2,8 @@ Background: Given NUnit path is ..\nunit\ - + +@3.4.1 @teamcity Scenario Outline: I can run all tests except those in the CatA category Given Framework version is @@ -23,13 +24,12 @@ Scenario Outline: I can run all tests except those in the CatA category | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - - Examples: | frameworkVersion | | Version45 | | Version40 | +@3.4.1 @teamcity Scenario Outline: I can run only the tests in the CatA category Given Framework version is @@ -52,13 +52,12 @@ Scenario Outline: I can run only the tests in the CatA category | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - - Examples: | frameworkVersion | | Version45 | | Version40 | +@3.4.1 @teamcity Scenario Outline: I can run all tests except those in the CatA category from NUnit 2 framework Given Framework version is @@ -79,10 +78,7 @@ Scenario Outline: I can run all tests except those in the CatA category from NUn | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - - Examples: | frameworkVersion | | Version45 | - | Version40 | - \ No newline at end of file + | Version40 | \ No newline at end of file diff --git a/src/nunit.integration.tests/ExcludeIncludeTests.feature.cs b/src/nunit.integration.tests/ExcludeIncludeTests.feature.cs index c7bd355..9cd29c5 100644 --- a/src/nunit.integration.tests/ExcludeIncludeTests.feature.cs +++ b/src/nunit.integration.tests/ExcludeIncludeTests.feature.cs @@ -73,45 +73,47 @@ public virtual void FeatureBackground() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can run all tests except those in the CatA category")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void ICanRunAllTestsExceptThoseInTheCatACategory(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run all tests except those in the CatA category", @__tags); -#line 7 +#line 8 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 8 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 10 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 10 +#line 11 testRunner.And("I have added successfulCatA method as SuccessfulTestCatA to the class Foo.Tests.U" + "nitTests1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 11 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 - testRunner.And("I have added the arg Where=cat!=CatA to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And("I have added the arg Where=cat!=CatA to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line 19 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { @@ -132,7 +134,7 @@ public virtual void ICanRunAllTestsExceptThoseInTheCatACategory(string framework table1.AddRow(new string[] { "Skipped", "0"}); -#line 19 +#line 20 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table1, "And "); #line hidden this.ScenarioCleanup(); @@ -140,12 +142,14 @@ public virtual void ICanRunAllTestsExceptThoseInTheCatACategory(string framework [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can run only the tests in the CatA category")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void ICanRunOnlyTheTestsInTheCatACategory(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @@ -213,47 +217,49 @@ public virtual void ICanRunOnlyTheTestsInTheCatACategory(string frameworkVersion [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can run all tests except those in the CatA category from NUnit 2 framework")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void ICanRunAllTestsExceptThoseInTheCatACategoryFromNUnit2Framework(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run all tests except those in the CatA category from NUnit 2 framework", @__tags); -#line 63 +#line 62 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 64 +#line 63 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 65 +#line 64 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 66 +#line 65 testRunner.And("I have added successfulCatA method as SuccessfulTestCatA to the class Foo.Tests.U" + "nitTests1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 67 +#line 66 testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 68 +#line 67 testRunner.And("I have added the reference ..\\..\\packages\\NUnit.2.6.4\\lib\\nunit.framework.dll to " + "foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 69 +#line 68 testRunner.And("I have copied the reference ..\\..\\packages\\NUnit.2.6.4\\lib\\nunit.framework.dll to" + " folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 70 +#line 69 testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 71 +#line 70 testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 72 +#line 71 testRunner.And("I have added the arg Where=cat!=CatA to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 73 +#line 72 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 74 +#line 73 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { @@ -274,7 +280,7 @@ public virtual void ICanRunAllTestsExceptThoseInTheCatACategoryFromNUnit2Framewo table3.AddRow(new string[] { "Skipped", "0"}); -#line 75 +#line 74 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table3, "And "); #line hidden this.ScenarioCleanup(); diff --git a/src/nunit.integration.tests/ExitCodeForExceptionalCases.feature b/src/nunit.integration.tests/ExitCodeForExceptionalCases.feature index afcad8a..393d352 100644 --- a/src/nunit.integration.tests/ExitCodeForExceptionalCases.feature +++ b/src/nunit.integration.tests/ExitCodeForExceptionalCases.feature @@ -2,7 +2,8 @@ Background: Given NUnit path is ..\nunit\ - + +@3.4.1 @teamcity Scenario Outline: NUnit returns negative exit -2 code when I run it without any assemblies Given Framework version is @@ -10,7 +11,6 @@ Scenario Outline: NUnit returns negative exit -2 code when I run it without any And I have added the arg Process= to NUnit console command line When I run NUnit console Then the exit code should be -2 - Examples: | frameworkVersion | process | | Version45 | InProcess | @@ -20,6 +20,7 @@ Examples: | Version45 | Multiple | | Version40 | Multiple | +@3.4.1 @teamcity Scenario Outline: NUnit returns negative exit -2 code when I run it without nunit.framework.dll Given Framework version is @@ -31,7 +32,6 @@ Scenario Outline: NUnit returns negative exit -2 code when I run it without nuni And I have added the arg Process= to NUnit console command line When I run NUnit console Then the exit code should be -2 - Examples: | frameworkVersion | process | | Version45 | InProcess | @@ -41,6 +41,7 @@ Examples: | Version45 | Multiple | | Version40 | Multiple | +@3.4.1 @teamcity Scenario Outline: NUnit returns exit code -100 when the test throws StackOverflow exception Given Framework version is @@ -54,7 +55,6 @@ Scenario Outline: NUnit returns exit code -100 when the test throws StackOverflo And I have added the arg Process= to NUnit console command line When I run NUnit console Then the exit code should be -100 - Examples: | frameworkVersion | process | # | Version45 | InProcess | @@ -64,6 +64,7 @@ Examples: | Version45 | Multiple | | Version40 | Multiple | +@3.4.1 @teamcity @ignore Scenario Outline: NUnit returns positive exit code when the test throws OutOfMemory exception @@ -85,8 +86,6 @@ Scenario Outline: NUnit returns positive exit code when the test throws OutOfMem | Failed | 1 | | Inconclusive | 0 | | Skipped | 0 | - - Examples: | frameworkVersion | process | | Version45 | InProcess | @@ -94,5 +93,4 @@ Examples: | Version45 | Separate | | Version40 | Separate | | Version45 | Multiple | - | Version40 | Multiple | - + | Version40 | Multiple | \ No newline at end of file diff --git a/src/nunit.integration.tests/ExitCodeForExceptionalCases.feature.cs b/src/nunit.integration.tests/ExitCodeForExceptionalCases.feature.cs index 0755bb2..11d1463 100644 --- a/src/nunit.integration.tests/ExitCodeForExceptionalCases.feature.cs +++ b/src/nunit.integration.tests/ExitCodeForExceptionalCases.feature.cs @@ -73,6 +73,7 @@ public virtual void FeatureBackground() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit returns negative exit -2 code when I run it without any assemblies")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", new string[0])] @@ -83,26 +84,27 @@ public virtual void FeatureBackground() public virtual void NUnitReturnsNegativeExit_2CodeWhenIRunItWithoutAnyAssemblies(string frameworkVersion, string process, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit returns negative exit -2 code when I run it without any assemblies", @__tags); -#line 7 +#line 8 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 8 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 10 testRunner.And("I have added the assembly mocks\\notInTheDir.dll to the list of testing assemblies" + "", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 10 - testRunner.And(string.Format("I have added the arg Process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And(string.Format("I have added the arg Process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line 13 testRunner.Then("the exit code should be -2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); @@ -110,6 +112,7 @@ public virtual void NUnitReturnsNegativeExit_2CodeWhenIRunItWithoutAnyAssemblies [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit returns negative exit -2 code when I run it without nunit.framework.dll")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", new string[0])] @@ -120,34 +123,35 @@ public virtual void NUnitReturnsNegativeExit_2CodeWhenIRunItWithoutAnyAssemblies public virtual void NUnitReturnsNegativeExit_2CodeWhenIRunItWithoutNunit_Framework_Dll(string frameworkVersion, string process, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit returns negative exit -2 code when I run it without nunit.framework.dll", @__tags); -#line 24 +#line 25 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 25 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 26 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 27 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 27 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 28 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 29 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 30 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 31 - testRunner.And(string.Format("I have added the arg Process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 32 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And(string.Format("I have added the arg Process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 33 + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line 34 testRunner.Then("the exit code should be -2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); @@ -155,6 +159,7 @@ public virtual void NUnitReturnsNegativeExit_2CodeWhenIRunItWithoutNunit_Framewo [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit returns exit code -100 when the test throws StackOverflow exception")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "Separate", new string[0])] @@ -163,38 +168,39 @@ public virtual void NUnitReturnsNegativeExit_2CodeWhenIRunItWithoutNunit_Framewo public virtual void NUnitReturnsExitCode_100WhenTheTestThrowsStackOverflowException(string frameworkVersion, string process, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit returns exit code -100 when the test throws StackOverflow exception", @__tags); -#line 45 +#line 46 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 46 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 47 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 48 testRunner.And("I have added failedStackOverflow method as FailedStackOverflow to the class Foo.T" + "ests.UnitTests1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 48 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 49 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 50 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 51 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 52 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 53 - testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 54 - testRunner.And(string.Format("I have added the arg Process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 55 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And(string.Format("I have added the arg Process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 56 + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line 57 testRunner.Then("the exit code should be -100", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); @@ -203,6 +209,7 @@ public virtual void NUnitReturnsExitCode_100WhenTheTestThrowsStackOverflowExcept [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit returns positive exit code when the test throws OutOfMemory exception")] [NUnit.Framework.IgnoreAttribute("Ignored scenario")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", new string[0])] @@ -213,6 +220,7 @@ public virtual void NUnitReturnsExitCode_100WhenTheTestThrowsStackOverflowExcept public virtual void NUnitReturnsPositiveExitCodeWhenTheTestThrowsOutOfMemoryException(string frameworkVersion, string process, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity", "ignore"}; if ((exampleTags != null)) @@ -220,32 +228,32 @@ public virtual void NUnitReturnsPositiveExitCodeWhenTheTestThrowsOutOfMemoryExce @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit returns positive exit code when the test throws OutOfMemory exception", @__tags); -#line 69 +#line 70 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 70 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 71 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 72 testRunner.And("I have added failedOutOfMemory method as FailedOutOfMemory to the class Foo.Tests" + ".UnitTests1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 72 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 73 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 74 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 75 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 76 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 77 - testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 78 - testRunner.And(string.Format("I have added the arg Process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 79 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And(string.Format("I have added the arg Process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 80 + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line 81 testRunner.Then("the exit code should be 1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { @@ -266,7 +274,7 @@ public virtual void NUnitReturnsPositiveExitCodeWhenTheTestThrowsOutOfMemoryExce table1.AddRow(new string[] { "Skipped", "0"}); -#line 81 +#line 82 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table1, "And "); #line hidden this.ScenarioCleanup(); diff --git a/src/nunit.integration.tests/ListOfTests.feature b/src/nunit.integration.tests/ListOfTests.feature index 6af5a7e..dba16bc 100644 --- a/src/nunit.integration.tests/ListOfTests.feature +++ b/src/nunit.integration.tests/ListOfTests.feature @@ -3,6 +3,7 @@ Background: Given NUnit path is ..\nunit\ +@3.4.1 @teamcity Scenario Outline: I can explore tests and write the list of tests to file Given Framework version is @@ -23,13 +24,12 @@ Scenario Outline: I can explore tests and write the list of tests to file | fullname | | Foo.Tests.UnitTests1.SuccessfulTest1 | | Foo.Tests.UnitTests1.SuccessfulTest2 | - - Examples: | frameworkVersion | | Version45 | | Version40 | +@3.4.1 @teamcity Scenario Outline: I can explore tests and write the list of tests to file for several assemblies Given Framework version is @@ -58,14 +58,12 @@ Scenario Outline: I can explore tests and write the list of tests to file for se | Foo.Tests.UnitTests1.SuccessfulTest2 | | Foo.Tests.UnitTests2.SuccessfulTest1 | | Foo.Tests.UnitTests1.SuccessfulTest1 | - - Examples: | frameworkVersion | | Version45 | | Version40 | - +@3.4.1 @teamcity Scenario Outline: I can run tests from the list of tests Given Framework version is @@ -89,14 +87,12 @@ Scenario Outline: I can run tests from the list of tests | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - - Examples: | frameworkVersion | | Version45 | | Version40 | - +@3.4.1 @teamcity Scenario Outline: I can run tests from the list of tests for several assemblies Given Framework version is @@ -126,7 +122,6 @@ Scenario Outline: I can run tests from the list of tests for several assemblies | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - Examples: | configurationType | frameworkVersion | | ProjectFile | Version45 | @@ -134,6 +129,7 @@ Examples: | CmdArguments | Version45 | | CmdArguments | Version40 | +@3.4.1 @teamcity Scenario Outline: I can run tests from the list of tests for several assemblies from different directories Given Framework version is @@ -166,7 +162,6 @@ Scenario Outline: I can run tests from the list of tests for several assemblies | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - Examples: | configurationType | frameworkVersion | | ProjectFile | Version45 | diff --git a/src/nunit.integration.tests/ListOfTests.feature.cs b/src/nunit.integration.tests/ListOfTests.feature.cs index 7e2ad68..3422ab3 100644 --- a/src/nunit.integration.tests/ListOfTests.feature.cs +++ b/src/nunit.integration.tests/ListOfTests.feature.cs @@ -73,52 +73,54 @@ public virtual void FeatureBackground() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can explore tests and write the list of tests to file")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void ICanExploreTestsAndWriteTheListOfTestsToFile(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can explore tests and write the list of tests to file", @__tags); -#line 7 +#line 8 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 8 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 10 testRunner.And("I have added successful method as SuccessfulTest1 to the class Foo.Tests.UnitTest" + "s1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 10 +#line 11 testRunner.And("I have added successful method as SuccessfulTest2 to the class Foo.Tests.UnitTest" + "s1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 11 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 - testRunner.And("I have added the arg Explore=mocks\\AllTests.xml to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And("I have added the arg Explore=mocks\\AllTests.xml to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 18 + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line 19 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { "name"}); table1.AddRow(new string[] { "foo.tests.dll"}); -#line 19 +#line 20 testRunner.And("the xml file mocks\\AllTests.xml contains items by xPath .//test-suite[@type=\'Asse" + "mbly\']:", ((string)(null)), table1, "And "); #line hidden @@ -128,7 +130,7 @@ public virtual void ICanExploreTestsAndWriteTheListOfTestsToFile(string framewor "Foo.Tests.UnitTests1.SuccessfulTest1"}); table2.AddRow(new string[] { "Foo.Tests.UnitTests1.SuccessfulTest2"}); -#line 22 +#line 23 testRunner.And("the xml file mocks\\AllTests.xml contains items by xPath .//test-suite[@type=\'Test" + "Fixture\']/test-case:", ((string)(null)), table2, "And "); #line hidden @@ -137,12 +139,14 @@ public virtual void ICanExploreTestsAndWriteTheListOfTestsToFile(string framewor [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can explore tests and write the list of tests to file for several assemblies")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void ICanExploreTestsAndWriteTheListOfTestsToFileForSeveralAssemblies(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @@ -219,53 +223,55 @@ public virtual void ICanExploreTestsAndWriteTheListOfTestsToFileForSeveralAssemb [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can run tests from the list of tests")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void ICanRunTestsFromTheListOfTests(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run tests from the list of tests", @__tags); -#line 70 +#line 68 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 71 +#line 69 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 72 +#line 70 testRunner.And("I have added successful method as SuccessfulTest1 to the class Foo.Tests.UnitTest" + "s1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 73 +#line 71 testRunner.And("I have added successful method as SuccessfulTest2 to the class Foo.Tests.UnitTest" + "s2 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 74 +#line 72 testRunner.And("I have added successful method as SuccessfulTest3 to the class Foo.Tests.UnitTest" + "s3 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 75 +#line 73 testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 76 +#line 74 testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 77 +#line 75 testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 78 +#line 76 testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 79 +#line 77 testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 80 +#line 78 testRunner.And("I have append the line Foo.Tests.UnitTests1 to file mocks\\ListOfTests.txt", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 81 +#line 79 testRunner.And("I have append the line Foo.Tests.UnitTests2 to file mocks\\ListOfTests.txt", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 82 +#line 80 testRunner.And("I have added the arg TestList=mocks\\ListOfTests.txt to NUnit console command line" + "", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 83 +#line 81 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 84 +#line 82 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] { @@ -286,7 +292,7 @@ public virtual void ICanRunTestsFromTheListOfTests(string frameworkVersion, stri table5.AddRow(new string[] { "Skipped", "0"}); -#line 85 +#line 83 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table5, "And "); #line hidden this.ScenarioCleanup(); @@ -294,6 +300,7 @@ public virtual void ICanRunTestsFromTheListOfTests(string frameworkVersion, stri [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can run tests from the list of tests for several assemblies")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version40", new string[0])] @@ -302,61 +309,62 @@ public virtual void ICanRunTestsFromTheListOfTests(string frameworkVersion, stri public virtual void ICanRunTestsFromTheListOfTestsForSeveralAssemblies(string configurationType, string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run tests from the list of tests for several assemblies", @__tags); -#line 101 +#line 97 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 102 +#line 98 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 103 +#line 99 testRunner.And("I have added successful method as SuccessfulTest1 to the class Foo.Tests.UnitTest" + "s1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 104 +#line 100 testRunner.And("I have added successful method as SuccessfulTest2 to the class Foo.Tests.UnitTest" + "s2 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 105 +#line 101 testRunner.And("I have added successful method as SuccessfulTest3 to the class Foo.Tests.UnitTest" + "s3 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 106 +#line 102 testRunner.And("I have added successful method as SuccessfulTest1 to the class Foo.Tests.UnitTest" + "s4 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 107 +#line 103 testRunner.And("I have added successful method as SuccessfulTest1 to the class Foo.Tests.UnitTest" + "s1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 108 +#line 104 testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 109 +#line 105 testRunner.And("I have added NUnit framework references to foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 110 +#line 106 testRunner.And("I have added NUnit framework references to foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 111 +#line 107 testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 112 +#line 108 testRunner.And("I have compiled the assembly foo1.tests to file mocks\\foo1.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 113 +#line 109 testRunner.And("I have compiled the assembly foo2.tests to file mocks\\foo2.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 114 +#line 110 testRunner.And("I have added the assembly mocks\\foo1.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 115 +#line 111 testRunner.And("I have added the assembly mocks\\foo2.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 116 +#line 112 testRunner.And("I have append the line Foo.Tests.UnitTests1 to file mocks\\ListOfTests.txt", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 117 +#line 113 testRunner.And("I have append the line Foo.Tests.UnitTests2 to file mocks\\ListOfTests.txt", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 118 +#line 114 testRunner.And("I have added the arg TestList=mocks\\ListOfTests.txt to NUnit console command line" + "", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 119 +#line 115 testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 120 +#line 116 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 121 +#line 117 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] { @@ -377,7 +385,7 @@ public virtual void ICanRunTestsFromTheListOfTestsForSeveralAssemblies(string co table6.AddRow(new string[] { "Skipped", "0"}); -#line 122 +#line 118 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table6, "And "); #line hidden this.ScenarioCleanup(); @@ -386,6 +394,7 @@ public virtual void ICanRunTestsFromTheListOfTestsForSeveralAssemblies(string co [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can run tests from the list of tests for several assemblies from different dire" + "ctories")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version40", new string[0])] @@ -394,6 +403,7 @@ public virtual void ICanRunTestsFromTheListOfTestsForSeveralAssemblies(string co public virtual void ICanRunTestsFromTheListOfTestsForSeveralAssembliesFromDifferentDirectories(string configurationType, string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @@ -401,63 +411,63 @@ public virtual void ICanRunTestsFromTheListOfTestsForSeveralAssembliesFromDiffer } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run tests from the list of tests for several assemblies from different dire" + "ctories", @__tags); -#line 138 +#line 134 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 139 +#line 135 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 140 +#line 136 testRunner.And("I have added successful method as SuccessfulTest1 to the class Foo.Tests.UnitTest" + "s1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 141 +#line 137 testRunner.And("I have added successful method as SuccessfulTest2 to the class Foo.Tests.UnitTest" + "s2 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 142 +#line 138 testRunner.And("I have added successful method as SuccessfulTest3 to the class Foo.Tests.UnitTest" + "s3 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 143 +#line 139 testRunner.And("I have added successful method as SuccessfulTest1 to the class Foo.Tests.UnitTest" + "s4 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 144 +#line 140 testRunner.And("I have added successful method as SuccessfulTest1 to the class Foo.Tests.UnitTest" + "s1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 145 +#line 141 testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 146 +#line 142 testRunner.And("I have added NUnit framework references to foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 147 +#line 143 testRunner.And("I have added NUnit framework references to foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 148 +#line 144 testRunner.And("I have created the folder mocks\\1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 149 +#line 145 testRunner.And("I have copied NUnit framework references to folder mocks\\1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 150 +#line 146 testRunner.And("I have compiled the assembly foo1.tests to file mocks\\1\\foo1.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 151 +#line 147 testRunner.And("I have created the folder mocks\\2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 152 +#line 148 testRunner.And("I have copied NUnit framework references to folder mocks\\2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 153 +#line 149 testRunner.And("I have compiled the assembly foo2.tests to file mocks\\2\\foo2.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 154 +#line 150 testRunner.And("I have added the assembly mocks\\1\\foo1.tests.dll to the list of testing assemblie" + "s", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 155 +#line 151 testRunner.And("I have added the assembly mocks\\2\\foo2.tests.dll to the list of testing assemblie" + "s", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 156 +#line 152 testRunner.And("I have append the line Foo.Tests.UnitTests1 to file mocks\\ListOfTests.txt", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 157 +#line 153 testRunner.And("I have append the line Foo.Tests.UnitTests2 to file mocks\\ListOfTests.txt", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 158 +#line 154 testRunner.And("I have added the arg TestList=mocks\\ListOfTests.txt to NUnit console command line" + "", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 159 +#line 155 testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 160 +#line 156 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 161 +#line 157 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] { @@ -478,7 +488,7 @@ public virtual void ICanRunTestsFromTheListOfTestsForSeveralAssembliesFromDiffer table7.AddRow(new string[] { "Skipped", "0"}); -#line 162 +#line 158 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table7, "And "); #line hidden this.ScenarioCleanup(); diff --git a/src/nunit.integration.tests/ReleaseOSResources.feature b/src/nunit.integration.tests/ReleaseOSResources.feature index 866cd88..72e5a42 100644 --- a/src/nunit.integration.tests/ReleaseOSResources.feature +++ b/src/nunit.integration.tests/ReleaseOSResources.feature @@ -2,7 +2,8 @@ Background: Given NUnit path is ..\nunit\ - + +@3.4.1 @ignore Scenario Outline: Agent is finished when AppDomain did not unloaded correctly Given Framework version is @@ -16,10 +17,9 @@ Scenario Outline: Agent is finished when AppDomain did not unloaded correctly When I run NUnit console Then processes nunit-agent are finished Then processes nunit-agent-x86 are finished - Examples: | frameworkVersion | platform | | Version45 | AnyCpu | | Version40 | AnyCpu | | Version45 | X86 | - | Version40 | X86 | + | Version40 | X86 | \ No newline at end of file diff --git a/src/nunit.integration.tests/ReleaseOSResources.feature.cs b/src/nunit.integration.tests/ReleaseOSResources.feature.cs index d79afb5..58d57f7 100644 --- a/src/nunit.integration.tests/ReleaseOSResources.feature.cs +++ b/src/nunit.integration.tests/ReleaseOSResources.feature.cs @@ -74,6 +74,7 @@ public virtual void FeatureBackground() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Agent is finished when AppDomain did not unloaded correctly")] [NUnit.Framework.IgnoreAttribute("Ignored scenario")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.TestCaseAttribute("Version45", "AnyCpu", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "AnyCpu", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "X86", new string[0])] @@ -81,38 +82,39 @@ public virtual void FeatureBackground() public virtual void AgentIsFinishedWhenAppDomainDidNotUnloadedCorrectly(string frameworkVersion, string platform, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "ignore"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Agent is finished when AppDomain did not unloaded correctly", @__tags); -#line 7 +#line 8 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 8 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 10 testRunner.And("I have added UnloadingDomain method as UnloadingDomain to the class Foo.Tests.Uni" + "tTests1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 10 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 - testRunner.And(string.Format("I have specified {0} platform for assembly foo.tests", platform), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I have specified {0} platform for assembly foo.tests", platform), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 - testRunner.Then("processes nunit-agent are finished", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 18 + testRunner.Then("processes nunit-agent are finished", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line 19 testRunner.Then("processes nunit-agent-x86 are finished", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden this.ScenarioCleanup(); diff --git a/src/nunit.integration.tests/RunTests.feature b/src/nunit.integration.tests/RunTests.feature index f48a337..8d1dd7f 100644 --- a/src/nunit.integration.tests/RunTests.feature +++ b/src/nunit.integration.tests/RunTests.feature @@ -3,6 +3,7 @@ Background: Given NUnit path is ..\nunit\ +@3.4.1 Scenario Outline: User runs tests for several assemblies Given Framework version is And I have created the folder mocks @@ -44,7 +45,6 @@ Scenario Outline: User runs tests for several assemblies | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - Examples: | frameworkVersion | process | domain | agents | platform | configurationType | | Version40 | InProcess | Single | 2 | AnyCpu | ProjectFile | @@ -116,6 +116,7 @@ Examples: | Version45 | Separate | Multiple | 2 | X86 | CmdArguments | | Version40 | Separate | Multiple | 2 | X86 | CmdArguments | +@3.4.1 Scenario Outline: User runs parallelizable tests Given Framework version is And I have added SuccessfulParallelizable method as SuccessfulParallelizable1 to the class Foo.Tests.UnitTests1 for foo1.tests @@ -153,7 +154,6 @@ Scenario Outline: User runs parallelizable tests | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - Examples: | frameworkVersion | process | domain | agents | platform | | Version45 | InProcess | Single | 10 | AnyCpu | @@ -189,6 +189,7 @@ Examples: | Version45 | Separate | Multiple | 1 | X86 | | Version40 | Separate | Multiple | 1 | X86 | +@3.4.1 Scenario Outline: User runs parallelizable tests for NUnit 2 framework And I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests1 for foo.tests And I have added successfulCatA method as SuccessfulTestCatA to the class Foo.Tests.UnitTests1 for foo.tests @@ -214,7 +215,6 @@ Scenario Outline: User runs parallelizable tests for NUnit 2 framework | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - Examples: | frameworkVersion | process | domain | agents | platform | | Version45 | InProcess | Single | 10 | AnyCpu | diff --git a/src/nunit.integration.tests/RunTests.feature.cs b/src/nunit.integration.tests/RunTests.feature.cs index 5f2746e..65e65b6 100644 --- a/src/nunit.integration.tests/RunTests.feature.cs +++ b/src/nunit.integration.tests/RunTests.feature.cs @@ -73,6 +73,7 @@ public virtual void FeatureBackground() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("User runs tests for several assemblies")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Single", "2", "AnyCpu", "ProjectFile", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Single", "2", "AnyCpu", "ProjectFile", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Single", "2", "AnyCpu", "ProjectFile", new string[0])] @@ -143,61 +144,67 @@ public virtual void FeatureBackground() [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Multiple", "2", "X86", "CmdArguments", new string[0])] public virtual void UserRunsTestsForSeveralAssemblies(string frameworkVersion, string process, string domain, string agents, string platform, string configurationType, string[] exampleTags) { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User runs tests for several assemblies", exampleTags); -#line 6 + string[] @__tags = new string[] { + "3.4.1"}; + if ((exampleTags != null)) + { + @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); + } + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User runs tests for several assemblies", @__tags); +#line 7 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 7 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line 11 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 11 +#line 12 testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 13 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo1.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo1.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line 15 testRunner.And("I have added the assembly mocks\\foo1.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 16 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo2.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo2.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line 18 testRunner.And("I have added the assembly mocks\\foo2.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 19 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo3.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 20 + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo3.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line 21 testRunner.And("I have added the assembly mocks\\foo3.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 22 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo4.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 23 + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo4.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line 24 testRunner.And("I have added the assembly mocks\\foo4.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 25 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo5.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 26 + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo5.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line 27 testRunner.And("I have added the assembly mocks\\foo5.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 28 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo6.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 29 + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo6.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line 30 testRunner.And("I have added the assembly mocks\\foo6.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 31 - testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 32 - testRunner.And("I have added the arg workers=10 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 33 - testRunner.And(string.Format("I have added the arg agents={0} to NUnit console command line", agents), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the arg workers=10 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 34 - testRunner.And(string.Format("I have added the arg process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I have added the arg agents={0} to NUnit console command line", agents), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 35 + testRunner.And(string.Format("I have added the arg process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line 36 testRunner.And(string.Format("I have added the arg domain={0} to NUnit console command line", domain), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 37 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 38 - testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 39 + testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line 40 testRunner.And("the output should contain correct set of TeamCity service messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { @@ -218,7 +225,7 @@ public virtual void UserRunsTestsForSeveralAssemblies(string frameworkVersion, s table1.AddRow(new string[] { "Skipped", "0"}); -#line 40 +#line 41 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table1, "And "); #line hidden this.ScenarioCleanup(); @@ -226,6 +233,7 @@ public virtual void UserRunsTestsForSeveralAssemblies(string frameworkVersion, s [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("User runs parallelizable tests")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "Single", "10", "AnyCpu", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Single", "10", "AnyCpu", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Single", "10", "AnyCpu", new string[0])] @@ -260,78 +268,84 @@ public virtual void UserRunsTestsForSeveralAssemblies(string frameworkVersion, s [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Multiple", "1", "X86", new string[0])] public virtual void UserRunsParallelizableTests(string frameworkVersion, string process, string domain, string agents, string platform, string[] exampleTags) { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User runs parallelizable tests", exampleTags); -#line 119 + string[] @__tags = new string[] { + "3.4.1"}; + if ((exampleTags != null)) + { + @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); + } + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User runs parallelizable tests", @__tags); +#line 120 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 120 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 121 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 122 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable1 to the " + "class Foo.Tests.UnitTests1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 122 +#line 123 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable2 to the " + "class Foo.Tests.UnitTests1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 123 +#line 124 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable3 to the " + "class Foo.Tests.UnitTests1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 124 +#line 125 testRunner.And("I have added attribute [assembly: NUnit.Framework.Parallelizable] to the assembly" + " foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 125 +#line 126 testRunner.And("I have added attribute [NUnit.Framework.Parallelizable] to the class Foo.Tests.Un" + "itTests1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 126 - testRunner.And("I have added NUnit framework references to foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 127 + testRunner.And("I have added NUnit framework references to foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line 128 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable4 to the " + "class Foo.Tests.UnitTests1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 128 +#line 129 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable5 to the " + "class Foo.Tests.UnitTests1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 129 +#line 130 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable6 to the " + "class Foo.Tests.UnitTests1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 130 +#line 131 testRunner.And("I have added attribute [assembly: NUnit.Framework.Parallelizable] to the assembly" + " foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 131 +#line 132 testRunner.And("I have added attribute [NUnit.Framework.Parallelizable] to the class Foo.Tests.Un" + "itTests1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 132 - testRunner.And("I have added NUnit framework references to foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 133 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 134 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 135 - testRunner.And(string.Format("I have specified {0} platform for assembly foo1.tests", platform), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 136 - testRunner.And("I have compiled the assembly foo1.tests to file mocks\\foo1.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I have specified {0} platform for assembly foo1.tests", platform), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 137 - testRunner.And(string.Format("I have specified {0} platform for assembly foo2.tests", platform), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo1.tests to file mocks\\foo1.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 138 - testRunner.And("I have compiled the assembly foo2.tests to file mocks\\foo2.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I have specified {0} platform for assembly foo2.tests", platform), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 139 - testRunner.And("I have added the assembly mocks\\foo1.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo2.tests to file mocks\\foo2.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 140 - testRunner.And("I have added the assembly mocks\\foo2.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo1.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 141 - testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo2.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 142 - testRunner.And("I have added the arg workers=10 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 143 - testRunner.And(string.Format("I have added the arg agents={0} to NUnit console command line", agents), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the arg workers=10 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 144 - testRunner.And(string.Format("I have added the arg process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I have added the arg agents={0} to NUnit console command line", agents), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 145 - testRunner.And(string.Format("I have added the arg domain={0} to NUnit console command line", domain), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I have added the arg process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 146 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And(string.Format("I have added the arg domain={0} to NUnit console command line", domain), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 147 - testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 148 + testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line 149 testRunner.And("the output should contain correct set of TeamCity service messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { @@ -352,7 +366,7 @@ public virtual void UserRunsParallelizableTests(string frameworkVersion, string table2.AddRow(new string[] { "Skipped", "0"}); -#line 149 +#line 150 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table2, "And "); #line hidden this.ScenarioCleanup(); @@ -360,6 +374,7 @@ public virtual void UserRunsParallelizableTests(string frameworkVersion, string [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("User runs parallelizable tests for NUnit 2 framework")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "Single", "10", "AnyCpu", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Single", "10", "AnyCpu", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Single", "10", "AnyCpu", new string[0])] @@ -394,48 +409,54 @@ public virtual void UserRunsParallelizableTests(string frameworkVersion, string [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Multiple", "1", "X86", new string[0])] public virtual void UserRunsParallelizableTestsForNUnit2Framework(string frameworkVersion, string process, string domain, string agents, string platform, string[] exampleTags) { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User runs parallelizable tests for NUnit 2 framework", exampleTags); -#line 192 + string[] @__tags = new string[] { + "3.4.1"}; + if ((exampleTags != null)) + { + @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); + } + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User runs parallelizable tests for NUnit 2 framework", @__tags); +#line 193 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 193 +#line 194 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 194 +#line 195 testRunner.And("I have added successfulCatA method as SuccessfulTestCatA to the class Foo.Tests.U" + "nitTests1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 195 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 196 + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); +#line 197 testRunner.And("I have added the reference ..\\..\\packages\\NUnit.2.6.4\\lib\\nunit.framework.dll to " + "foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 197 +#line 198 testRunner.And("I have copied the reference ..\\..\\packages\\NUnit.2.6.4\\lib\\nunit.framework.dll to" + " folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 198 - testRunner.And(string.Format("I have specified {0} platform for assembly foo.tests", platform), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 199 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I have specified {0} platform for assembly foo.tests", platform), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 200 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 201 - testRunner.And("I have added the arg Where=cat!=CatA to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 202 - testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the arg Where=cat!=CatA to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 203 - testRunner.And("I have added the arg workers=10 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 204 - testRunner.And(string.Format("I have added the arg agents={0} to NUnit console command line", agents), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the arg workers=10 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 205 - testRunner.And(string.Format("I have added the arg process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I have added the arg agents={0} to NUnit console command line", agents), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 206 - testRunner.And(string.Format("I have added the arg domain={0} to NUnit console command line", domain), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I have added the arg process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 207 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And(string.Format("I have added the arg domain={0} to NUnit console command line", domain), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 208 - testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 209 + testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line 210 testRunner.And("the output should contain correct set of TeamCity service messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { @@ -456,7 +477,7 @@ public virtual void UserRunsParallelizableTestsForNUnit2Framework(string framewo table3.AddRow(new string[] { "Skipped", "0"}); -#line 210 +#line 211 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table3, "And "); #line hidden this.ScenarioCleanup(); diff --git a/src/nunit.integration.tests/RunningFromDifferentLocations.feature b/src/nunit.integration.tests/RunningFromDifferentLocations.feature index ad57ed3..b5b219f 100644 --- a/src/nunit.integration.tests/RunningFromDifferentLocations.feature +++ b/src/nunit.integration.tests/RunningFromDifferentLocations.feature @@ -2,7 +2,8 @@ Background: Given NUnit path is ..\nunit\ - + +@3.4.1 Scenario Outline: I can run tests from nested directory Given Framework version is And I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests1 for foo.tests @@ -22,13 +23,12 @@ Scenario Outline: I can run tests from nested directory | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - - Examples: | configurationType | frameworkVersion | | CmdArguments | Version45 | | CmdArguments | Version40 | +@3.4.1 Scenario Outline: I can run tests from parent directory Given Framework version is And I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests1 for foo.tests @@ -48,8 +48,6 @@ Scenario Outline: I can run tests from parent directory | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - - Examples: | configurationType | frameworkVersion | | ProjectFile | Version45 | diff --git a/src/nunit.integration.tests/RunningFromDifferentLocations.feature.cs b/src/nunit.integration.tests/RunningFromDifferentLocations.feature.cs index 8bb8e4f..d75edf8 100644 --- a/src/nunit.integration.tests/RunningFromDifferentLocations.feature.cs +++ b/src/nunit.integration.tests/RunningFromDifferentLocations.feature.cs @@ -73,37 +73,44 @@ public virtual void FeatureBackground() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can run tests from nested directory")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.TestCaseAttribute("CmdArguments", "Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("CmdArguments", "Version40", new string[0])] public virtual void ICanRunTestsFromNestedDirectory(string configurationType, string frameworkVersion, string[] exampleTags) { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run tests from nested directory", exampleTags); -#line 6 + string[] @__tags = new string[] { + "3.4.1"}; + if ((exampleTags != null)) + { + @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); + } + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run tests from nested directory", @__tags); +#line 7 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 7 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 9 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 9 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 - testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 - testRunner.And("I have change current directory to WorkingDirectory", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And("I have change current directory to WorkingDirectory", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line 18 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { @@ -124,7 +131,7 @@ public virtual void ICanRunTestsFromNestedDirectory(string configurationType, st table1.AddRow(new string[] { "Skipped", "0"}); -#line 18 +#line 19 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table1, "And "); #line hidden this.ScenarioCleanup(); @@ -132,13 +139,20 @@ public virtual void ICanRunTestsFromNestedDirectory(string configurationType, st [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can run tests from parent directory")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version40", new string[0])] [NUnit.Framework.TestCaseAttribute("CmdArguments", "Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("CmdArguments", "Version40", new string[0])] public virtual void ICanRunTestsFromParentDirectory(string configurationType, string frameworkVersion, string[] exampleTags) { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run tests from parent directory", exampleTags); + string[] @__tags = new string[] { + "3.4.1"}; + if ((exampleTags != null)) + { + @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); + } + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run tests from parent directory", @__tags); #line 32 this.ScenarioSetup(scenarioInfo); #line 3 diff --git a/src/nunit.integration.tests/SupportPlatforms.feature b/src/nunit.integration.tests/SupportPlatforms.feature index a784b46..3d2b011 100644 --- a/src/nunit.integration.tests/SupportPlatforms.feature +++ b/src/nunit.integration.tests/SupportPlatforms.feature @@ -2,7 +2,8 @@ Background: Given NUnit path is ..\nunit\ - + +@3.4.1 Scenario Outline: I can run test for different platforms Given Framework version is And I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests1 for foo.tests @@ -21,8 +22,6 @@ Scenario Outline: I can run test for different platforms | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - - Examples: | frameworkVersion | platform | | Version45 | AnyCpu | diff --git a/src/nunit.integration.tests/SupportPlatforms.feature.cs b/src/nunit.integration.tests/SupportPlatforms.feature.cs index a261e31..93bef82 100644 --- a/src/nunit.integration.tests/SupportPlatforms.feature.cs +++ b/src/nunit.integration.tests/SupportPlatforms.feature.cs @@ -73,6 +73,7 @@ public virtual void FeatureBackground() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("I can run test for different platforms")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.TestCaseAttribute("Version45", "AnyCpu", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "AnyCpu", new string[0])] [NUnit.Framework.TestCaseAttribute("Version20", "AnyCpu", new string[0])] @@ -81,31 +82,37 @@ public virtual void FeatureBackground() [NUnit.Framework.TestCaseAttribute("Version20", "X86", new string[0])] public virtual void ICanRunTestForDifferentPlatforms(string frameworkVersion, string platform, string[] exampleTags) { - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run test for different platforms", exampleTags); -#line 6 + string[] @__tags = new string[] { + "3.4.1"}; + if ((exampleTags != null)) + { + @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); + } + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can run test for different platforms", @__tags); +#line 7 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 7 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 8 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 9 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 9 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 10 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 - testRunner.And(string.Format("I have specified {0} platform for assembly foo.tests", platform), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I have specified {0} platform for assembly foo.tests", platform), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); +#line 17 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { @@ -126,7 +133,7 @@ public virtual void ICanRunTestForDifferentPlatforms(string frameworkVersion, st table1.AddRow(new string[] { "Skipped", "0"}); -#line 17 +#line 18 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table1, "And "); #line hidden this.ScenarioCleanup(); diff --git a/src/nunit.integration.tests/TeamCity.feature b/src/nunit.integration.tests/TeamCity.feature index 317c1af..f6bad19 100644 --- a/src/nunit.integration.tests/TeamCity.feature +++ b/src/nunit.integration.tests/TeamCity.feature @@ -3,6 +3,7 @@ Background: Given NUnit path is ..\nunit\ +@3.4.1 @teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run successful test for NUnit3 Given Framework version is @@ -25,12 +26,12 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run successful | testFinished | Foo.Tests.UnitTests1.SuccessfulTest | | \d+ | .+ | | | | | | | flowFinished | | | | .+ | | | | | | | testSuiteFinished | foo.tests.dll | | | .+ | | | | | | - Examples: | frameworkVersion | | Version45 | | Version40 | - + +@3.4.1 @teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run it for different types of tests Given Framework version is @@ -70,7 +71,6 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run it for diff | testIgnored | Foo.Tests.UnitTests4.InconclusiveTest | | | .+ | | Inconclusive | | | | | flowFinished | | | | .+ | | | | | | | testSuiteFinished | foo.tests.dll | | | .+ | | | | | | - Examples: | configurationType | frameworkVersion | teamCityIntegration | | ProjectFile | Version45 | CmdArguments | @@ -82,6 +82,7 @@ Examples: | CmdArguments | Version45 | EnvVariable | | CmdArguments | Version40 | EnvVariable | +@3.4.1 @teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run it for failed setup Given Framework version is @@ -105,12 +106,12 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run it for fail | testFinished | Foo.Tests.UnitTests1.SuccessfulTest | | \d+ | .+ | | | | | | flowFinished | | | | .+ | | | | | | testSuiteFinished | foo.tests.dll | | | .+ | | | | | - Examples: | frameworkVersion | | Version45 | | Version40 | +@3.4.1 @teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run it for failed one time setup Given Framework version is @@ -134,13 +135,12 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run it for fail | testFinished | Foo.Tests.UnitTests1.SuccessfulTest | | \d+ | .+ | | | | | | flowFinished | | | | .+ | | | | | | testSuiteFinished | foo.tests.dll | | | .+ | | | | | - Examples: | frameworkVersion | | Version45 | | Version40 | - +@3.4.1 @teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run it for failed tear down Given Framework version is @@ -165,12 +165,12 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run it for fail | testFinished | Foo.Tests.UnitTests1.SuccessfulTest | | \d+ | .+ | | | | | | | flowFinished | | | | .+ | | | | | | | testSuiteFinished | foo.tests.dll | | | .+ | | | | | | - Examples: | frameworkVersion | | Version45 | | Version40 | +@3.4.1 @teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run it for failed ctor Given Framework version is @@ -194,12 +194,12 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run it for fail | testFinished | Foo.Tests.UnitTests1.SuccessfulTest | | \d+ | .+ | | | | | | flowFinished | | | | .+ | | | | | | testSuiteFinished | foo.tests.dll | | | .+ | | | | | - Examples: | frameworkVersion | | Version45 | | Version40 | +@3.4.1 @teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run it for failed ctor for NUnit2 Given Framework version is @@ -221,13 +221,12 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run it for fail | testFailed | Foo.Tests.UnitTests1.SuccessfulTest | | | .+ | | TestFixtureSetUp failed in UnitTests1 | | | | testFinished | Foo.Tests.UnitTests1.SuccessfulTest | | \d+ | .+ | | | | | | testSuiteFinished | foo.tests.dll | | | .+ | | | | | - Examples: | frameworkVersion | | Version45 | | Version40 | - +@3.4.1 @teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run it for parallelizable tests Given Framework version is @@ -261,12 +260,12 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run it for para | Failed | 0 | | Inconclusive | 0 | | Skipped | 0 | - Examples: | frameworkVersion | | Version45 | | Version40 | - + +@3.4.1 @teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run successful tests with the same names in the several assemblies Given Framework version is @@ -302,13 +301,13 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run successful | testFinished | Foo.Tests.UnitTests1.SuccessfulTest | | \d+ | .+ | | | | | | | flowFinished | | | | .+ | | | | | | | testSuiteFinished | foo2.tests.dll | | | .+ | | | | | | - Examples: | frameworkVersion | | Version45 | | Version40 | - @teamcity +@3.4.1 +@teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run many test Given Framework version is And I have added 1000 successful methods as SuccessfulTest to the class Foo.Tests.UnitTests1 for foo.tests1 @@ -325,12 +324,13 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run many test When I run NUnit console Then the exit code should be 0 And the output should contain correct set of TeamCity service messages - Examples: | frameworkVersion | | Version45 | | Version40 | +@3.5 +@dev @teamcity Scenario Outline: NUnit sends TeamCity's service messages when I run many test for several assemblies for NUnit2 Given Framework version is @@ -352,47 +352,27 @@ Scenario Outline: NUnit sends TeamCity's service messages when I run many test f When I run NUnit console Then the exit code should be 0 And the output should contain correct set of TeamCity service messages - Examples: | frameworkVersion | process | domain | agents | | Version45 | InProcess | None | 10 | | Version40 | InProcess | None | 10 | | Version45 | Separate | None | 10 | - | Version40 | Separate | None | 10 | | Version45 | Multiple | None | 10 | - | Version40 | Multiple | None | 10 | | Version45 | InProcess | Single | 10 | - | Version40 | InProcess | Single | 10 | | Version45 | Separate | Single | 10 | - | Version40 | Separate | Single | 10 | | Version45 | Multiple | Single | 10 | - | Version40 | Multiple | Single | 10 | | Version45 | InProcess | Multiple | 10 | - | Version40 | InProcess | Multiple | 10 | | Version45 | Separate | Multiple | 10 | - | Version40 | Separate | Multiple | 10 | -# | Version45 | Multiple | Multiple | 10 | -# | Version40 | Multiple | Multiple | 10 | | Version45 | InProcess | None | 1 | - | Version40 | InProcess | None | 1 | | Version45 | Separate | None | 1 | - | Version40 | Separate | None | 1 | | Version45 | Multiple | None | 1 | - | Version40 | Multiple | None | 1 | | Version45 | InProcess | Single | 1 | - | Version40 | InProcess | Single | 1 | | Version45 | Separate | Single | 1 | - | Version40 | Separate | Single | 1 | | Version45 | Multiple | Single | 1 | - | Version40 | Multiple | Single | 1 | | Version45 | InProcess | Multiple | 1 | - | Version40 | InProcess | Multiple | 1 | | Version45 | Separate | Multiple | 1 | - | Version40 | Separate | Multiple | 1 | -# | Version45 | Multiple | Multiple | 1 | -# | Version40 | Multiple | Multiple | 1 | - +@3.4.1 @teamcity @Ignore Scenario Outline: NUnit sends TeamCity's service messages for bunch of test for several assemblies for NUnit2 @@ -419,36 +399,17 @@ Examples: | Version45 | InProcess | None | 10 | | Version40 | InProcess | None | 10 | | Version45 | Separate | None | 10 | - | Version40 | Separate | None | 10 | | Version45 | Multiple | None | 10 | - | Version40 | Multiple | None | 10 | | Version45 | InProcess | Single | 10 | - | Version40 | InProcess | Single | 10 | | Version45 | Separate | Single | 10 | - | Version40 | Separate | Single | 10 | | Version45 | Multiple | Single | 10 | - | Version40 | Multiple | Single | 10 | | Version45 | InProcess | Multiple | 10 | - | Version40 | InProcess | Multiple | 10 | | Version45 | Separate | Multiple | 10 | - | Version40 | Separate | Multiple | 10 | -# | Version45 | Multiple | Multiple | 10 | -# | Version40 | Multiple | Multiple | 10 | | Version45 | InProcess | None | 1 | - | Version40 | InProcess | None | 1 | | Version45 | Separate | None | 1 | - | Version40 | Separate | None | 1 | | Version45 | Multiple | None | 1 | - | Version40 | Multiple | None | 1 | | Version45 | InProcess | Single | 1 | - | Version40 | InProcess | Single | 1 | | Version45 | Separate | Single | 1 | - | Version40 | Separate | Single | 1 | | Version45 | Multiple | Single | 1 | - | Version40 | Multiple | Single | 1 | | Version45 | InProcess | Multiple | 1 | - | Version40 | InProcess | Multiple | 1 | - | Version45 | Separate | Multiple | 1 | - | Version40 | Separate | Multiple | 1 | -# | Version45 | Multiple | Multiple | 1 | -# | Version40 | Multiple | Multiple | 1 | \ No newline at end of file + | Version45 | Separate | Multiple | 1 | \ No newline at end of file diff --git a/src/nunit.integration.tests/TeamCity.feature.cs b/src/nunit.integration.tests/TeamCity.feature.cs index a7389d2..09b5145 100644 --- a/src/nunit.integration.tests/TeamCity.feature.cs +++ b/src/nunit.integration.tests/TeamCity.feature.cs @@ -73,44 +73,46 @@ public virtual void FeatureBackground() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run successful test for NUnit3")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunSuccessfulTestForNUnit3(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit sends TeamCity\'s service messages when I run successful test for NUnit3", @__tags); -#line 7 +#line 8 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 8 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 9 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 10 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 10 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 11 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 12 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 13 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 14 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 15 - testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 16 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 17 - testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 18 + testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line 19 testRunner.And("the output should contain correct set of TeamCity service messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] { @@ -201,7 +203,7 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunSuccessfulTestForN "", "", ""}); -#line 19 +#line 20 testRunner.And("the output should contain TeamCity service messages:", ((string)(null)), table1, "And "); #line hidden this.ScenarioCleanup(); @@ -210,6 +212,7 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunSuccessfulTestForN [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run it for different types of test" + "s")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version45", "CmdArguments", new string[0])] [NUnit.Framework.TestCaseAttribute("ProjectFile", "Version40", "CmdArguments", new string[0])] @@ -222,6 +225,7 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunSuccessfulTestForN public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForDifferentTypesOfTests(string configurationType, string frameworkVersion, string teamCityIntegration, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @@ -229,43 +233,43 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForDifferentType } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit sends TeamCity\'s service messages when I run it for different types of test" + "s", @__tags); -#line 35 +#line 36 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 36 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 37 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 38 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 38 +#line 39 testRunner.And("I have added failed method as FailedTest to the class Foo.Tests.UnitTests2 for fo" + "o.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 39 +#line 40 testRunner.And("I have added ignored method as IgnoredTest to the class Foo.Tests.UnitTests3 for " + "foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 40 +#line 41 testRunner.And("I have added inconclusive method as InconclusiveTest to the class Foo.Tests.UnitT" + "ests4 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 41 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 42 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 43 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 44 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 45 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 46 - testRunner.And(string.Format("I want to use {0} type of TeamCity integration", teamCityIntegration), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 47 - testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("I want to use {0} type of TeamCity integration", teamCityIntegration), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 48 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And(string.Format("I want to use {0} configuration type", configurationType), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 49 - testRunner.Then("the exit code should be 1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 50 + testRunner.Then("the exit code should be 1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line 51 testRunner.And("the output should contain correct set of TeamCity service messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] { @@ -499,7 +503,7 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForDifferentType "", "", ""}); -#line 51 +#line 52 testRunner.And("the output should contain TeamCity service messages:", ((string)(null)), table2, "And "); #line hidden this.ScenarioCleanup(); @@ -507,47 +511,49 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForDifferentType [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run it for failed setup")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedSetup(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit sends TeamCity\'s service messages when I run it for failed setup", @__tags); -#line 86 +#line 87 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 87 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 88 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 89 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 89 +#line 90 testRunner.And("I have added failedSetUp method as FailedSetUp to the class Foo.Tests.UnitTests1 " + "for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 90 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 91 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 92 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 93 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 94 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 95 - testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 96 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 97 - testRunner.Then("the exit code should be 1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 98 + testRunner.Then("the exit code should be 1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line 99 testRunner.And("the output should contain correct set of TeamCity service messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] { @@ -630,7 +636,7 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedSetup(s "", "", ""}); -#line 99 +#line 100 testRunner.And("the output should contain TeamCity service messages:", ((string)(null)), table3, "And "); #line hidden this.ScenarioCleanup(); @@ -638,47 +644,49 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedSetup(s [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run it for failed one time setup")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedOneTimeSetup(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit sends TeamCity\'s service messages when I run it for failed one time setup", @__tags); -#line 115 +#line 116 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 116 - testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line 117 + testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); +#line 118 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 118 +#line 119 testRunner.And("I have added failedSetUp method as FailedOneTimeSetUp to the class Foo.Tests.Unit" + "Tests1 for foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 119 - testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 120 - testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 121 - testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added NUnit framework references to foo.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 122 - testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 123 - testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have compiled the assembly foo.tests to file mocks\\foo.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 124 - testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And("I have added the assembly mocks\\foo.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 125 - testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line 126 - testRunner.Then("the exit code should be 1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); + testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line 127 + testRunner.Then("the exit code should be 1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); +#line 128 testRunner.And("the output should contain correct set of TeamCity service messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] { @@ -761,7 +769,7 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedOneTime "", "", ""}); -#line 128 +#line 129 testRunner.And("the output should contain TeamCity service messages:", ((string)(null)), table4, "And "); #line hidden this.ScenarioCleanup(); @@ -769,12 +777,14 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedOneTime [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run it for failed tear down")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedTearDown(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @@ -919,12 +929,14 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedTearDow [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run it for failed ctor")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedCtor(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @@ -1050,12 +1062,14 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedCtor(st [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run it for failed ctor for NUnit2")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedCtorForNUnit2(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @@ -1163,79 +1177,81 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForFailedCtorFor [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run it for parallelizable tests")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForParallelizableTests(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit sends TeamCity\'s service messages when I run it for parallelizable tests", @__tags); -#line 232 +#line 231 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 233 +#line 232 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 234 +#line 233 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable1 to the " + "class Foo.Tests.UnitTests1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 235 +#line 234 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable2 to the " + "class Foo.Tests.UnitTests1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 236 +#line 235 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable3 to the " + "class Foo.Tests.UnitTests1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 237 +#line 236 testRunner.And("I have added attribute [assembly: NUnit.Framework.Parallelizable] to the assembly" + " foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 238 +#line 237 testRunner.And("I have added attribute [NUnit.Framework.Parallelizable] to the class Foo.Tests.Un" + "itTests1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 239 +#line 238 testRunner.And("I have added NUnit framework references to foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 240 +#line 239 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable4 to the " + "class Foo.Tests.UnitTests1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 241 +#line 240 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable5 to the " + "class Foo.Tests.UnitTests1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 242 +#line 241 testRunner.And("I have added SuccessfulParallelizable method as SuccessfulParallelizable6 to the " + "class Foo.Tests.UnitTests1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 243 +#line 242 testRunner.And("I have added attribute [assembly: NUnit.Framework.Parallelizable] to the assembly" + " foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 244 +#line 243 testRunner.And("I have added attribute [NUnit.Framework.Parallelizable] to the class Foo.Tests.Un" + "itTests1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 245 +#line 244 testRunner.And("I have added NUnit framework references to foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 246 +#line 245 testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 247 +#line 246 testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 248 +#line 247 testRunner.And("I have compiled the assembly foo1.tests to file mocks\\foo1.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 249 +#line 248 testRunner.And("I have compiled the assembly foo2.tests to file mocks\\foo2.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 250 +#line 249 testRunner.And("I have added the assembly mocks\\foo1.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 251 +#line 250 testRunner.And("I have added the assembly mocks\\foo2.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 252 +#line 251 testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 253 +#line 252 testRunner.And("I have added the arg workers=10 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 254 +#line 253 testRunner.And("I have added the arg agents=10 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 255 +#line 254 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 256 +#line 255 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { @@ -1256,7 +1272,7 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForParallelizabl table8.AddRow(new string[] { "Skipped", "0"}); -#line 257 +#line 256 testRunner.And("the Test Run Summary should has following:", ((string)(null)), table8, "And "); #line hidden this.ScenarioCleanup(); @@ -1265,12 +1281,14 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunItForParallelizabl [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run successful tests with the same" + " names in the several assemblies")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunSuccessfulTestsWithTheSameNamesInTheSeveralAssemblies(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @@ -1278,45 +1296,45 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunSuccessfulTestsWit } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit sends TeamCity\'s service messages when I run successful tests with the same" + " names in the several assemblies", @__tags); -#line 271 +#line 270 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 272 +#line 271 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 273 +#line 272 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 274 +#line 273 testRunner.And("I have added successful method as SuccessfulTest to the class Foo.Tests.UnitTests" + "1 for foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 275 +#line 274 testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 276 +#line 275 testRunner.And("I have added NUnit framework references to foo1.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 277 +#line 276 testRunner.And("I have added NUnit framework references to foo2.tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 278 +#line 277 testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 279 +#line 278 testRunner.And("I have compiled the assembly foo1.tests to file mocks\\foo1.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 280 +#line 279 testRunner.And("I have compiled the assembly foo2.tests to file mocks\\foo2.tests.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 281 +#line 280 testRunner.And("I have added the assembly mocks\\foo1.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 282 +#line 281 testRunner.And("I have added the assembly mocks\\foo2.tests.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 283 +#line 282 testRunner.And("I have added the arg workers=1 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 284 +#line 283 testRunner.And("I have added the arg agents=1 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 285 +#line 284 testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 286 +#line 285 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 287 +#line 286 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line 288 +#line 287 testRunner.And("the output should contain correct set of TeamCity service messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] { @@ -1484,7 +1502,7 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunSuccessfulTestsWit "", "", ""}); -#line 289 +#line 288 testRunner.And("the output should contain TeamCity service messages:", ((string)(null)), table9, "And "); #line hidden this.ScenarioCleanup(); @@ -1492,53 +1510,55 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunSuccessfulTestsWit [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run many test")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunManyTest(string frameworkVersion, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit sends TeamCity\'s service messages when I run many test", @__tags); -#line 312 +#line 311 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 313 +#line 312 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 314 +#line 313 testRunner.And("I have added 1000 successful methods as SuccessfulTest to the class Foo.Tests.Uni" + "tTests1 for foo.tests1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 315 +#line 314 testRunner.And("I have added 1000 successful methods as SuccessfulTest to the class Foo.Tests.Uni" + "tTests2 for foo.tests2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 316 +#line 315 testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 317 +#line 316 testRunner.And("I have added NUnit framework references to foo.tests1", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 318 +#line 317 testRunner.And("I have added NUnit framework references to foo.tests2", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 319 +#line 318 testRunner.And("I have copied NUnit framework references to folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 320 +#line 319 testRunner.And("I have compiled the assembly foo.tests1 to file mocks\\foo.tests1.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 321 +#line 320 testRunner.And("I have compiled the assembly foo.tests2 to file mocks\\foo.tests2.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 322 +#line 321 testRunner.And("I have added the assembly mocks\\foo.tests1.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 323 +#line 322 testRunner.And("I have added the assembly mocks\\foo.tests2.dll to the list of testing assemblies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 324 +#line 323 testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 325 +#line 324 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 326 +#line 325 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line 327 +#line 326 testRunner.And("the output should contain correct set of TeamCity service messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup(); @@ -1547,42 +1567,31 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunManyTest(string fr [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages when I run many test for several assembli" + "es for NUnit2")] + [NUnit.Framework.CategoryAttribute("3.5")] + [NUnit.Framework.CategoryAttribute("dev")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "None", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "None", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "None", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "None", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Multiple", "None", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Multiple", "None", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "Single", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Single", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Single", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Single", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Multiple", "Single", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Multiple", "Single", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "Multiple", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Multiple", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Multiple", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Multiple", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "None", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "None", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "None", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "None", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Multiple", "None", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Multiple", "None", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "Single", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Single", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Single", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Single", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Multiple", "Single", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Multiple", "Single", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "Multiple", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Multiple", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Multiple", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Multiple", "1", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunManyTestForSeveralAssembliesForNUnit2(string frameworkVersion, string process, string domain, string agents, string[] exampleTags) { string[] @__tags = new string[] { + "3.5", + "dev", "teamcity"}; if ((exampleTags != null)) { @@ -1645,42 +1654,29 @@ public virtual void NUnitSendsTeamCitySServiceMessagesWhenIRunManyTestForSeveral [NUnit.Framework.DescriptionAttribute("NUnit sends TeamCity\'s service messages for bunch of test for several assemblies " + "for NUnit2")] [NUnit.Framework.IgnoreAttribute("Ignored scenario")] + [NUnit.Framework.CategoryAttribute("3.4.1")] [NUnit.Framework.CategoryAttribute("teamcity")] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "None", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "None", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "None", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "None", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Multiple", "None", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Multiple", "None", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "Single", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Single", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Single", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Single", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Multiple", "Single", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Multiple", "Single", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "Multiple", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Multiple", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Multiple", "10", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Multiple", "10", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "None", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "None", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "None", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "None", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Multiple", "None", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Multiple", "None", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "Single", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Single", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Single", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Single", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Multiple", "Single", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Multiple", "Single", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "InProcess", "Multiple", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "InProcess", "Multiple", "1", new string[0])] [NUnit.Framework.TestCaseAttribute("Version45", "Separate", "Multiple", "1", new string[0])] - [NUnit.Framework.TestCaseAttribute("Version40", "Separate", "Multiple", "1", new string[0])] public virtual void NUnitSendsTeamCitySServiceMessagesForBunchOfTestForSeveralAssembliesForNUnit2(string frameworkVersion, string process, string domain, string agents, string[] exampleTags) { string[] @__tags = new string[] { + "3.4.1", "teamcity", "Ignore"}; if ((exampleTags != null)) @@ -1689,51 +1685,51 @@ public virtual void NUnitSendsTeamCitySServiceMessagesForBunchOfTestForSeveralAs } TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("NUnit sends TeamCity\'s service messages for bunch of test for several assemblies " + "for NUnit2", @__tags); -#line 398 +#line 378 this.ScenarioSetup(scenarioInfo); #line 3 this.FeatureBackground(); -#line 399 +#line 379 testRunner.Given(string.Format("Framework version is {0}", frameworkVersion), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line 400 +#line 380 testRunner.And("I have created the folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 401 +#line 381 testRunner.And("I have copied the reference ..\\..\\packages\\NUnit.2.6.4\\lib\\nunit.framework.dll to" + " folder mocks", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 402 +#line 382 testRunner.And("I have created assemblies according to NUnit2 test results ..\\..\\..\\testsData\\NUn" + "it2HugeTestResult.xml", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 403 +#line 383 testRunner.And("I have added the reference ..\\..\\packages\\NUnit.2.6.4\\lib\\nunit.framework.dll to " + "MAP.Common.Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 404 +#line 384 testRunner.And("I have compiled the assembly MAP.Common.Test to file mocks\\MAP.Common.Test.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 405 +#line 385 testRunner.And("I have added the reference ..\\..\\packages\\NUnit.2.6.4\\lib\\nunit.framework.dll to " + "MAP.Web.Test", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 406 +#line 386 testRunner.And("I have compiled the assembly MAP.Web.Test to file mocks\\MAP.Web.Test.dll", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 407 +#line 387 testRunner.And("I have added the assembly mocks\\MAP.Common.Test.dll to the list of testing assemb" + "lies", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 408 +#line 388 testRunner.And("I have added the assembly mocks\\MAP.Web.Test.dll to the list of testing assemblie" + "s", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 409 +#line 389 testRunner.And("I want to use CmdArguments type of TeamCity integration", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 410 +#line 390 testRunner.And("I have added the arg workers=10 to NUnit console command line", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 411 +#line 391 testRunner.And(string.Format("I have added the arg agents={0} to NUnit console command line", agents), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 412 +#line 392 testRunner.And(string.Format("I have added the arg process={0} to NUnit console command line", process), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 413 +#line 393 testRunner.And(string.Format("I have added the arg domain={0} to NUnit console command line", domain), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line 414 +#line 394 testRunner.When("I run NUnit console", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line 415 +#line 395 testRunner.Then("the exit code should be 0", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line 416 +#line 396 testRunner.And("the output should contain correct set of TeamCity service messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden this.ScenarioCleanup();