Skip to content

Commit

Permalink
Ran all tests and tested against the merged changes from Upstream. Th…
Browse files Browse the repository at this point in the history
…ere were a few issues, but nothing that couldn't be fixed. All tests pass and everything seems to be working.
  • Loading branch information
dragan committed Jun 18, 2010
1 parent 0247caa commit 0731e89
Show file tree
Hide file tree
Showing 9 changed files with 254 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<ItemGroup>
<Folder Include="Templates\" />
<Folder Include="Gui\" />
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Reference Include="MonoDevelop.Ide, Version=2.4.0.0, Culture=neutral, PublicKeyToken=null">
Expand All @@ -70,6 +71,10 @@
<ItemGroup>
<Compile Include="SingleFeatureFileGenerator.cs" />
<Compile Include="MonoDevelopProjectReader.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="..\..\VersionInfo.cs">
<Link>VersionInfo.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Generator\TechTalk.SpecFlow.Generator.csproj">
Expand Down
24 changes: 24 additions & 0 deletions IdeIntegration/MonoDevelopIntegration/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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("MonoDevelop.TechTalk.SpecFlow")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("MonoDevelop.TechTalk.SpecFlow")]
[assembly: AssemblyCopyright("Copyright © TechTalk, SineSignal, LLC 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("0ACD56A4-7A81-11DF-93DF-699DDFD72085")]

3 changes: 2 additions & 1 deletion Reporting/ReportParameters.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.IO;

namespace TechTalk.SpecFlow.Reporting
Expand All @@ -12,7 +13,7 @@ protected ReportParameters(string projectFile, string outputFile, string xsltFil
{
this.ProjectFile = projectFile;
this.OutputFile = Path.GetFullPath(outputFile);
this.XsltFile = Path.GetFullPath(xsltFile);
this.XsltFile = !String.IsNullOrEmpty(xsltFile) ? Path.GetFullPath(xsltFile) : String.Empty;
}
}
}
22 changes: 1 addition & 21 deletions Reporting/XmlResourceResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,7 @@ namespace TechTalk.SpecFlow.Reporting
{
public class XmlResourceResolver : XmlUrlResolver
{
//public override Uri ResolveUri(Uri baseUri, string relativeUri)
//{
// if (baseUri == null)
// {
// if (relativeUri == null)
// throw new ArgumentNullException ("Either baseUri or relativeUri are required.");
//
// if (relativeUri.StartsWith ("resource:"))
// {
// return new Uri(relativeUri);
// }
// else
// {
// return base.ResolveUri(baseUri, relativeUri);
// }
// }

// return base.ResolveUri(baseUri, relativeUri);
//}

public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
{
if (absoluteUri == null || !"resource".Equals(absoluteUri.Scheme, StringComparison.InvariantCultureIgnoreCase))
return base.GetEntity(absoluteUri, role, ofObjectToReturn);
Expand Down
401 changes: 204 additions & 197 deletions TechTalk.SpecFlow.MonoDevelop.sln

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Tests/ReportingTest.SampleProject/NUnitResult/generate
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
mono ../../../lib/nunit/nunit-console.exe ../bin/Debug/ReportingTest.SampleProject.dll -labels -xml=TestResult.xml -out:TestResult.txt -err:TestResult.err
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -31,10 +31,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.5.1.9189, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\nunit\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
Expand All @@ -47,6 +43,10 @@
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="nunit.framework, Version=2.5.5.10112, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\nunit\nunit.framework.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
Expand All @@ -59,19 +59,23 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="App.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="FeatureWithFailingScenarios.feature">
</None>
<None Include="FeatureWithSuccessfulScenarios.feature">
</None>
<None Include="NUnitResult\generate.cmd" />
<None Include="NUnitResult\generate" />
</ItemGroup>
<ItemGroup>
<Content Include="NUnitResult\TestResult.txt" />
<Content Include="NUnitResult\TestResult.xml" />
<Content Include="readme.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
7 changes: 4 additions & 3 deletions Tests/ReportingTests/StepDefinitions/Setup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ public class SampleProjectInfo : IDisposable

public SampleProjectInfo()
{
string projectFolderLocation = String.Format("..{0}..{0}..{0}ReportingTest.SampleProject", Path.DirectorySeparatorChar);
ProjectFolder = Path.GetFullPath(
Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"..\..\..\ReportingTest.SampleProject"));
Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), projectFolderLocation));
ProjectFilePath = Path.Combine(ProjectFolder, @"ReportingTest.SampleProject.csproj");

NUnitXmlResultPath = Path.Combine(ProjectFolder, @"NUnitResult\TestResult.xml");
NUnitTextResultPath = Path.Combine(ProjectFolder, @"NUnitResult\TestResult.txt");
NUnitXmlResultPath = Path.Combine(ProjectFolder, String.Format("NUnitResult{0}TestResult.xml", Path.DirectorySeparatorChar));
NUnitTextResultPath = Path.Combine(ProjectFolder, String.Format("NUnitResult{0}TestResult.txt", Path.DirectorySeparatorChar));

OutputFilePath = GenerateTempFilePath(".html");
}
Expand Down
5 changes: 2 additions & 3 deletions Tools/TechTalk.SpecFlow.Tools.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -12,8 +12,6 @@
<AssemblyName>specflow</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -86,6 +84,7 @@
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down

0 comments on commit 0731e89

Please sign in to comment.