[Mono-bugs] [Bug 430522] New: xunit console, fail to run test

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Sep 28 22:52:36 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=430522


           Summary: xunit console, fail to run test
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: x86-64
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mario.chavez at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:
Create test dll using xunit binaries from http://www.codeplex.com/xunit and try
to run tests usinf xuni-console.exe, it will fail to run

Steps to reproduce the problem:
1. Create a test dll
using System;
using Xunit;

public class Test
{
   [Fact]
   public void Method_to_test()
   {
     // Do nothing
   }
}


2. Compile and run, it will fail!


Actual Results:
xUnit.net console runner (xunit.dll version 1.0.3.1299)
Test assembly: Sample.Test.dll
System.NullReferenceException: Object reference not set to an instance of an
object
  at Xunit.Sdk.XmlUtility.AddAttribute (System.Xml.XmlNode node, System.String
name, System.Object value) [0x00000] 
  at Xunit.Sdk.MethodResult.ToXml (System.Xml.XmlNode parentNode) [0x00000] 
  at Xunit.Sdk.SkipResult.ToXml (System.Xml.XmlNode parentNode) [0x00000] 
  at Xunit.Sdk.Executor.OnTestResult (ITestResult result, ICallbackEventHandler
callback) [0x00000] 
  at
Xunit.Sdk.Executor+RunAssembly+<>c__DisplayClass4+<>c__DisplayClass7.<.ctor>b__1
(ITestResult result) [0x00000] 
  at Xunit.Sdk.TestClassCommandRunner.Execute (ITestClassCommand
testClassCommand, System.Collections.Generic.List`1 methods,
Xunit.Sdk.TestResultCallback callback) [0x00000] 
  at Xunit.Sdk.Executor+RunAssembly+<>c__DisplayClass4.<.ctor>b__0 () [0x00000] 


Expected Results:
It run on .NET

How often does this happen? 
Everytime

Additional Information:


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list