Moving autoroute functional tests to their own project

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros 2012-02-21 13:43:18 -08:00
parent 110cd38033
commit 989bfafb48
5 changed files with 15 additions and 125 deletions

View File

@ -1,8 +1,8 @@
9ec0a70c3e55898e66573f27bb12a75408ba305f src/Orchard.Web/Modules/Orchard.Autoroute
8919e889c915f45e2819fb7572aebc83d91e0786 src/Orchard.Web/Modules/Orchard.Autoroute
c54cb640d6bc14c51b9fb9bd78231bb0facec067 src/Orchard.Web/Modules/Orchard.Forms
204bdef384f41bb5e463bed6b98a056945a7d839 src/Orchard.Web/Modules/Orchard.Rules
ce578373f907c0a55fd91229a344f0755f290174 src/Orchard.Web/Modules/Orchard.TaskLease
a7c7f06ac79d4db2f4295a2a1473417647e6889c src/Orchard.Web/Modules/Orchard.Tokens
88a640948e19a1a9dd79b859856375e292d53f2f src/orchard.web/Modules/Orchard.Alias
3dd5bf2d6f3056bd032415287f332db4f2dbadb3 src/orchard.web/Modules/Orchard.Projections
055083c158c00b185aa9e2aff1a76161f32fdcf7 src/orchard.web/modules/Orchard.Fields
26b90e199c8e69fff24e9f6c672f3725899bb15f src/orchard.web/modules/Orchard.Fields

View File

@ -1,14 +0,0 @@
Feature: Autoroutes
In order to add content to my site
As an author
I want to create, publish and edit routes
Scenario: I can create and publish a new Page with international characters in its route
Given I have installed Orchard
When I go to "admin/contents/create/page"
And I fill in
| name | value |
| Title.Title | Χελλο |
And I hit "Publish Now"
And I go to "Χελλο"
Then I should see "<h1[^>]*>.*?Χελλο.*?</h1>"

View File

@ -1,100 +0,0 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:1.8.1.0
// SpecFlow Generator Version:1.8.0.0
// Runtime Version:4.0.30319.239
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#region Designer generated code
#pragma warning disable
namespace Orchard.Specs
{
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.8.1.0")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[NUnit.Framework.TestFixtureAttribute()]
[NUnit.Framework.DescriptionAttribute("Autoroutes")]
public partial class AutoroutesFeature
{
private static TechTalk.SpecFlow.ITestRunner testRunner;
#line 1 "Autoroute.feature"
#line hidden
[NUnit.Framework.TestFixtureSetUpAttribute()]
public virtual void FeatureSetup()
{
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Autoroutes", " In order to add content to my site\r\n As an author\r\n I want to create, publish" +
" and edit routes", ProgrammingLanguage.CSharp, ((string[])(null)));
testRunner.OnFeatureStart(featureInfo);
}
[NUnit.Framework.TestFixtureTearDownAttribute()]
public virtual void FeatureTearDown()
{
testRunner.OnFeatureEnd();
testRunner = null;
}
[NUnit.Framework.SetUpAttribute()]
public virtual void TestInitialize()
{
}
[NUnit.Framework.TearDownAttribute()]
public virtual void ScenarioTearDown()
{
testRunner.OnScenarioEnd();
}
public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
{
testRunner.OnScenarioStart(scenarioInfo);
}
public virtual void ScenarioCleanup()
{
testRunner.CollectScenarioErrors();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("I can create and publish a new Page with international characters in its route")]
public virtual void ICanCreateAndPublishANewPageWithInternationalCharactersInItsRoute()
{
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I can create and publish a new Page with international characters in its route", ((string[])(null)));
#line 6
this.ScenarioSetup(scenarioInfo);
#line 7
testRunner.Given("I have installed Orchard");
#line 8
testRunner.When("I go to \"admin/contents/create/page\"");
#line hidden
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
"name",
"value"});
table1.AddRow(new string[] {
"Title.Title",
"Χελλο"});
#line 9
testRunner.And("I fill in", ((string)(null)), table1);
#line 12
testRunner.And("I hit \"Publish Now\"");
#line 13
testRunner.And("I go to \"Χελλο\"");
#line 14
testRunner.Then("I should see \"<h1[^>]*>.*?Χελλο.*?</h1>\"");
#line hidden
this.ScenarioCleanup();
}
}
}
#pragma warning restore
#endregion

View File

@ -150,11 +150,6 @@
<DesignTime>True</DesignTime>
<DependentUpon>ContentTypes.feature</DependentUpon>
</Compile>
<Compile Include="Autoroute.feature.cs">
<DependentUpon>Autoroute.feature</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="Tags.feature.cs">
<DependentUpon>Tags.feature</DependentUpon>
<AutoGen>True</AutoGen>
@ -272,10 +267,6 @@
<Generator>SpecFlowSingleFileGenerator</Generator>
<LastGenOutput>ContentTypes.feature.cs</LastGenOutput>
</None>
<None Include="Autoroute.feature">
<Generator>SpecFlowSingleFileGenerator</Generator>
<LastGenOutput>Autoroute.feature.cs</LastGenOutput>
</None>
<None Include="Tags.feature">
<Generator>SpecFlowSingleFileGenerator</Generator>
<LastGenOutput>Tags.feature.cs</LastGenOutput>

View File

@ -140,6 +140,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Autoroute", "Orchar
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UpgradeTo14", "Orchard.Web\Modules\UpgradeTo14\UpgradeTo14.csproj", "{8A9FDB57-342D-49C2-BAFC-D885AAE5CC7C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Autoroute.Specs", "Orchard.Web\Modules\Orchard.Autoroute\Specs\Orchard.Autoroute.Specs.csproj", "{AC4402A1-61C4-4229-B840-FB1777DAE10C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
CodeCoverage|Any CPU = CodeCoverage|Any CPU
@ -760,6 +762,16 @@ Global
{8A9FDB57-342D-49C2-BAFC-D885AAE5CC7C}.FxCop|Any CPU.Build.0 = Release|Any CPU
{8A9FDB57-342D-49C2-BAFC-D885AAE5CC7C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8A9FDB57-342D-49C2-BAFC-D885AAE5CC7C}.Release|Any CPU.Build.0 = Release|Any CPU
{AC4402A1-61C4-4229-B840-FB1777DAE10C}.CodeCoverage|Any CPU.ActiveCfg = Release|Any CPU
{AC4402A1-61C4-4229-B840-FB1777DAE10C}.CodeCoverage|Any CPU.Build.0 = Release|Any CPU
{AC4402A1-61C4-4229-B840-FB1777DAE10C}.Coverage|Any CPU.ActiveCfg = Release|Any CPU
{AC4402A1-61C4-4229-B840-FB1777DAE10C}.Coverage|Any CPU.Build.0 = Release|Any CPU
{AC4402A1-61C4-4229-B840-FB1777DAE10C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AC4402A1-61C4-4229-B840-FB1777DAE10C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AC4402A1-61C4-4229-B840-FB1777DAE10C}.FxCop|Any CPU.ActiveCfg = Release|Any CPU
{AC4402A1-61C4-4229-B840-FB1777DAE10C}.FxCop|Any CPU.Build.0 = Release|Any CPU
{AC4402A1-61C4-4229-B840-FB1777DAE10C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AC4402A1-61C4-4229-B840-FB1777DAE10C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -822,6 +834,7 @@ Global
{94E694A2-D140-468D-A277-C5FCE1D13E9B} = {3E10BF6D-ADA5-417D-B36C-EBB0660B475E}
{7354DF37-934B-46CF-A13C-455D5F5F5413} = {3E10BF6D-ADA5-417D-B36C-EBB0660B475E}
{34BE9011-A5A9-49DD-9E53-C3D5CA7D7CE3} = {3E10BF6D-ADA5-417D-B36C-EBB0660B475E}
{AC4402A1-61C4-4229-B840-FB1777DAE10C} = {3E10BF6D-ADA5-417D-B36C-EBB0660B475E}
{CB70A642-8CEC-4DDE-8C9F-AD08900EC98D} = {74492CBC-7201-417E-BC29-28B4C25A58B0}
EndGlobalSection
EndGlobal