[Mono-list] gnunit 0.2 released
Gonzalo Paniagua Javier
gonzalo@ximian.com
Sun, 05 Oct 2003 07:16:21 +0200
--=-6bdYIoRyiEVceDbhkFPq
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
El dom, 05-10-2003 a las 06:18, Ian MacLean escribió:
> Gonzalo,
> Does this bind to a specific NUnit version ? I'm guessing nunit 2.0
Hi Ian!
Short answer: no.
Long answer:
I just downloaded 2.1.4 and started playing a bit. I'll send a separate
patch to mono-devel with the changes needed to upgrade the NUnit version
in mono to 2.1.4 (I'll CC you just in case you're not suscribed).
I only had to add a few files in mcs/nunit20/framework/*.sources and
also in mcs/nunit2/util/*.sources and do the modifications in the
attached patch, which remove the VSProject class usage and a semicolon
right after an endregion that made mcs complain.
Then I installed these brand-new NUnit.Framework.dll, NUnit.Util.dll and
nunit-console.exe and run gnunit.
Mono runtime complained about a missing method get_Test in typeref 42
for gnunit.exe, which was NUnit.Core.TestResult :-?. Then i
recompiled/reinstalled gnunit and was able to run all the corlib tests
:-)).
-Gonzalo
--=-6bdYIoRyiEVceDbhkFPq
Content-Disposition: attachment; filename=nunit-util.patch
Content-Type: text/x-patch; name=nunit-util.patch; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
diff -ur /home/gpanjav/temp/nunit/src/util/NUnitProject.cs ./NUnitProject.cs
--- /home/gpanjav/temp/nunit/src/util/NUnitProject.cs 2003-10-05 06:50:15.000000000 +0200
+++ ./NUnitProject.cs 2003-10-05 07:02:16.000000000 +0200
@@ -136,9 +136,7 @@
// True if it's ours or one we can load
public static bool CanLoadAsProject( string path )
{
- return IsProjectFile( path ) ||
- VSProject.IsProjectFile( path ) ||
- VSProject.IsSolutionFile( path );
+ return false;
}
public static string GenerateProjectName()
@@ -175,10 +173,6 @@
project.Load();
return project;
}
- else if ( VSProject.IsProjectFile( path ) )
- return NUnitProject.FromVSProject( path );
- else if ( VSProject.IsSolutionFile( path ) )
- return NUnitProject.FromVSSolution( path );
else
return NUnitProject.FromAssembly( path );
@@ -245,18 +239,6 @@
return project;
}
- public static NUnitProject FromVSProject( string vsProjectPath )
- {
- NUnitProject project = new NUnitProject( Path.GetFullPath( vsProjectPath ) );
-
- VSProject vsProject = new VSProject( vsProjectPath );
- project.Add( vsProject );
-
- project.isDirty = false;
-
- return project;
- }
-
public static NUnitProject FromVSSolution( string solutionPath )
{
NUnitProject project = new NUnitProject( Path.GetFullPath( solutionPath ) );
@@ -275,8 +257,6 @@
string[] parts = line.Split( delims );
string vsProjectPath = Path.Combine( solutionDirectory, parts[2].Trim(trimchars) );
- if ( VSProject.IsProjectFile( vsProjectPath ) )
- project.Add( new VSProject( vsProjectPath ) );
}
line = reader.ReadLine();
@@ -446,22 +426,6 @@
}
}
- public void Add( VSProject vsProject )
- {
- foreach( VSProjectConfig vsConfig in vsProject.Configs )
- {
- string name = vsConfig.Name;
-
- if ( !this.Configs.Contains( name ) )
- this.Configs.Add( name );
-
- ProjectConfig config = this.Configs[name];
-
- foreach ( string assembly in vsConfig.Assemblies )
- config.Assemblies.Add( assembly );
- }
- }
-
public void Load()
{
XmlTextReader reader = new XmlTextReader( projectPath );
Sólo en .: NUnitProject.cs~
Sólo en .: .NUnitProject.cs.swp
Sólo en .: NUnit.Util.dll.sources
Sólo en .: NUnit.Util.dll.sources~
Sólo en .: RecentAssemblySettings.cs
Sólo en .: RecentAssemblyUtil.cs
Sólo en .: TestLoadEventArgs.cs
diff -ur /home/gpanjav/temp/nunit/src/util/UITestNode.cs ./UITestNode.cs
--- /home/gpanjav/temp/nunit/src/util/UITestNode.cs 2003-10-05 06:50:15.000000000 +0200
+++ ./UITestNode.cs 2003-10-05 06:52:06.000000000 +0200
@@ -95,7 +95,7 @@
/// </summary>
private string description;
- #endregion;
+ #endregion
#region Construction and Conversion
Sólo en .: UITestNode.cs~
--=-6bdYIoRyiEVceDbhkFPq--