PNUnit Hangs on Simple Test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Triaged
|
High
|
Unassigned |
Bug Description
There's currently a problem with pNUnit where the notification of results
simply hangs. To repro,
1) Build latest source with nant build.
2) Change to build\net\
a windows machine. I haven't verified this problem
on linux yet.
3) copy agent.log.conf to launcher.log.conf
4) runpnunit.bat
The agent window shows the following:
INFO PNUnit.
PNUnit.
nunit.tests.dll, TestToRun TestLibraries.
PNUnit.
PNUnit.
ies.Testing.
PNUnit.
The launcher window shows this:
INFO launcher - Test 1 of 1
DEBUG launcher - Thread created for TestGroup Testing with 1 tests INFO
launcher - Starting Testing test Testing on localhost:8080 DEBUG launcher -
Thread going to wait for results for TestGroup Testing
It appears that NotifyResult() in the launcher is never entered. A problem
with remoting?
[From SF:2766410]
Comment from SF:
As a temporary fix, pnunit.tests.dll is in the same directory as
pnunit-agent.exe and pnunit-
pnunit.framework assemblies are being copied to the
same directory.
PNUnit should allow the same flexibility of appbase and probing paths that
NUnit itself supports.
description: | updated |
tags: | added: feature |
Changed in nunitv2: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: pnunit |
Changed in nunitv2: | |
milestone: | none → 2.6.0 |
Changed in nunitv2: | |
milestone: | 2.6.0 → none |
affects: | nunitv2 → nunit-3.0 |
Don't if it's exactly that bug but found a problem in PNUnit that cause PNUnit to hang at NotifyResult. In Agent, PNUnitTestRunner.cs if a exception occur in the finally @ ThreadProc:124, the agent just seems to hang or crash without error.
In my case if I put a invalid test name in my *.conf file, FindResult return null for result and BuildResult check for IsSuccess causing NullReferenceEx ception
//Fix for my case
--return null @ FindResult:196
++return result @ FindResult:196
Also comparing to PNUnit version I have downloaded your PNUnit seems to be outdated, the PNUnitTestRunner.cs is signicantly different.