NUnit-Console has encountered a problem...

NUnit-Console has encountered a problem...

Running ncover.console profiling nunit-console running tests crashes every time. Note that this is an x86 machine (NOT x64) and I have tried nunit-console.exe as well as nunit-console-x86.exe.

Here is the command:

NCover.Console NUnit-2.4.6-net-2.0\nunit-console-x86.exe Test.Common.dll Test.Configuration.dll Test.Data.dll Test.Logging.dll Test.Net.dll Test.WinForms.dll /nologo

On both Vista and 2003 I get the following error in Application Log:

Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 1000 Date: 11/26/2008 Time: 3:26:55 PM User: N/A Computer: XXXXX Description: Faulting application nunit-console-x86.exe, version 2.4.6.0, stamp 4779aac2, faulting module mscorwks.dll, version 2.0.50727.1433, stamp 471ef729, debug? 0, fault address 0x002f1486.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: 0000: 41 00 70 00 70 00 6c 00 A.p.p.l. 0008: 69 00 63 00 61 00 74 00 i.c.a.t. 0010: 69 00 6f 00 6e 00 20 00 i.o.n. . 0018: 46 00 61 00 69 00 6c 00 F.a.i.l. 0020: 75 00 72 00 65 00 20 00 u.r.e. . 0028: 20 00 6e 00 75 00 6e 00 .n.u.n. 0030: 69 00 74 00 2d 00 63 00 i.t.-.c. 0038: 6f 00 6e 00 73 00 6f 00 o.n.s.o. 0040: 6c 00 65 00 2d 00 78 00 l.e.-.x. 0048: 38 00 36 00 2e 00 65 00 8.6...e. 0050: 78 00 65 00 20 00 32 00 x.e. .2. 0058: 2e 00 34 00 2e 00 36 00 ..4...6. 0060: 2e 00 30 00 20 00 34 00 ..0. .4. 0068: 37 00 37 00 39 00 61 00 7.7.9.a. 0070: 61 00 63 00 32 00 20 00 a.c.2. . 0078: 69 00 6e 00 20 00 6d 00 i.n. .m. 0080: 73 00 63 00 6f 00 72 00 s.c.o.r. 0088: 77 00 6b 00 73 00 2e 00 w.k.s... 0090: 64 00 6c 00 6c 00 20 00 d.l.l. . 0098: 32 00 2e 00 30 00 2e 00 2...0... 00a0: 35 00 30 00 37 00 32 00 5.0.7.2. 00a8: 37 00 2e 00 31 00 34 00 7...1.4. 00b0: 33 00 33 00 20 00 34 00 3.3. .4. 00b8: 37 00 31 00 65 00 66 00 7.1.e.f. 00c0: 37 00 32 00 39 00 20 00 7.2.9. . 00c8: 66 00 44 00 65 00 62 00 f.D.e.b. 00d0: 75 00 67 00 20 00 30 00 u.g. .0. 00d8: 20 00 61 00 74 00 20 00 .a.t. . 00e0: 6f 00 66 00 66 00 73 00 o.f.f.s. 00e8: 65 00 74 00 20 00 30 00 e.t. .0. 00f0: 30 00 32 00 66 00 31 00 0.2.f.1. 00f8: 34 00 38 00 36 00 0d 00 4.8.6... 0100: 0a 00 ..

I have read all the topics in this forum - and tried each of the suggestions - but nothing has solved the problem.

One thing that I have noticed is that if I profile running tests against a few fixtures, no error. But even that has been inconsistent.


RE: NUnit-Console has encountered a problem...

I just ran the following command several times. Worked once, failed once, etc. Notice I have removed two test assemblies.

NCover.Console NUnit-2.4.6-net-2.0\nunit-console-x86.exe Test.Common.dll Test.Data.dll Test.WinForms.dll /nologo

But consistently if I have all the test assemblies profiled I get the error. I'm trying to be self-sufficient here...but I'm not seeing a path. Also, what are the real magic switches to generate log output? I've tried "//l logfile //ll Verbose" as well as "//log-file logfile".

Thanks.


RE: NUnit-Console has encountered a problem...

I suppose I should mention that any combination of test assemblies run without exception without ncover.console attached as the profiler. In other words, if I execute the following command it works every time:

NUnit-2.4.6-net-2.0\nunit-console-x86.exe Test.Common.dll Test.Configuration.dll Test.Data.dll Test.Logging.dll Test.Net.dll Test.WinForms.dll /nologo


RE: NUnit-Console has encountered a problem...

//l logfile.log //v should generate a verbose log file. Is a log file being generated at all? We will start trying to replicate the problem.