[MonoDevelop] Anyone have problems on OS X with unit testing?
Jay DeBoer
jaydeboer at gmail.com
Tue Jul 13 23:16:19 EDT 2010
I am using the ones packaged with MD. I have some more information about this as well. I am not sure if it is helpful or not but I looked in the log and each time I get the problem with the Load Failed. I see the following:
The application was terminated by a signal: SIGHUP
System.ApplicationException: Couldn't create a remote process.
at MonoDevelop.Core.Execution.ProcessHostController.CreateInstance (System.String assemblyPath, System.String typeName, System.String[] addins) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) MonoDevelop.Core.Execution.ProcessHostController:CreateInstance (string,string,string[])
at MonoDevelop.Core.Execution.ProcessService.CreateExternalProcessObject (System.Type type, Boolean shared) [0x00000] in <filename unknown>:0
at MonoDevelop.NUnit.NUnitAssemblyTestSuite.RunAsyncLoadTest () [0x00000] in <filename unknown>:0
But if I throw MD in the trash, and re-install it, then that error will go away for a bit. Doing that got me past the always getting load failed error. Now it seems that everything is fine until I edit a test and try to re-execute it. At that point it will fail, and I get the (Load Failed) message again. At that point, if I quit MD and restart it, I can run the edited test again. Just to be clear about what I mean by editing the test. I have been adding 1 space before the ; at the end of one of the assert lines and then promptly removing it again. So the sum total of my edit is adding and removing a singular space, so in the end, the net difference in the file is no changes. I hope something in here is helpful to someone. :) You all have a good evening.
Jay
On Jul 13, 2010, at 9:50 PM, Abe Gillespie wrote:
> Are you using the Mono-packaged NUnit assemblies? I used ones
> downloaded from the NUnit site and experienced some seriously funky
> issues such as simply renaming the test would make it go from passing
> to failing.
>
> On Tue, Jul 13, 2010 at 9:34 PM, Jay DeBoer <jaydeboer at gmail.com> wrote:
>>
>> Hi all,
>>
>> I am new to MonoDevelop and nunit as well. I have tried to add a new project to my solution for unit testing. I have added a reference to nunit and the project file that I want to write the tests for. I have written a few tests but every time I open the Unit Tests pad it tries to load the tests and then eventually adds (Load Failed) behind the name of the Unit test solution in that view. I am also new on OS X so I feel pretty lost. Any thoughts would be greatly appreciated.
>>
>> Thanks,
>>
>> Jay
>>
>> ** Example Code from one file **
>> using System;
>> using NUnit.Framework;
>> using CardLib;
>>
>> namespace CardLibUnitTests
>> {
>> [TestFixture]
>> public class CardTests
>> {
>> public CardTests ()
>> {
>> }
>>
>> [Test]
>> public void Card_ConstructorTest()
>> {
>> Card c = new Card(Suits.Diamonds,CardTypes.King, 12);
>> Assert.AreEqual(Suits.Diamonds, c.Suit,"Suit does not match.");
>> Assert.AreEqual(CardTypes.King, c.CardType, "CardType does not match.");
>> Assert.AreEqual(12,c.Rank, "Rank does not match.");
>> Assert.IsFalse(c.IsTrump, "Card should default not not trump.");
>> Assert.AreEqual((int)Suits.Diamonds * 10000 + c.Rank, c.Priority, "Priority does not match.");
>> }
>> //CardConstructorTest
>>
>> [Test]
>> public void Card_IsTrumpTrueTest()
>> {
>> Card c = new Card(Suits.Diamonds,CardTypes.King, 12);
>> Card.TrumpSuit = Suits.Diamonds;
>> Assert.IsTrue(c.IsTrump, "This care should be trump.");
>> Assert.AreEqual((int)Suits.Diamonds * 10000 + 1000 + 12, c.Priority);
>> }
>> //Card_IsTrumpTrueTest
>>
>> [Test]
>> public void Card_IsTrumpFalseTest()
>> {
>> Card c = new Card(Suits.Diamonds,CardTypes.King, 12);
>> Card.TrumpSuit = Suits.Clubs;
>> Assert.IsFalse(c.IsTrump, "This care should not be trump.");
>> Assert.AreEqual((int)Suits.Diamonds * 10000 + 12, c.Priority);
>> }
>> //Card_IsTrumpTrueTest
>>
>> }
>> //CardTests
>> }
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
More information about the Monodevelop-list
mailing list