[1574] Problem running NUnit tests

Hello, I'm using the sln2005 runner, and even if it doesn't fail, I'm
getting NullReference exceptions from the new NUnit integration.

Should I install any special version of NUnit on the server? I've got
NUnit-Net-2.0 2.2.8.

This in the build log (I hope it's not too wrapped..=):

[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157048596467.msbuild"] Using "NUnit" task from
assembly "C:\Program
Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll".
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157048596467.msbuild"] Command:
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157048596467.msbuild"] C:\Program
Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe
"http://localhost:9090/RPC2" "115"
"src\XWF.Setup\bin\Release\XWF.Commands.Tests.dll;src\XWF.Setup\bin\Release\XWF.Core.Tests.dll"
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157048596467.msbuild"] The "NUnit" task is using
"JetBrains.BuildServer.NUnitLauncher2.0.exe" from "C:\Program
Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe".
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157048596467.msbuild"] NUnit 2.2.8.0 Error:
System.NullReferenceException: Object reference not set to an instance of
an object.
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157048596467.msbuild"] at
JetBrains.BuildServer.NUnitLauncher.NUnitRunner.Run()
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157048596467.msbuild"] NUnit 2.2.8.0 Error:
System.NullReferenceException: Object reference not set to an instance of
an object.
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157048596467.msbuild"] at
JetBrains.BuildServer.NUnitLauncher.NUnitRunner.Run()

--

--

The sun never set on the British Empire because the British Empire is in
the East and the sun sets in the West. Queen Victoria was the longest
queen. She sat on a thorn for 63 years. He reclining years and finally the
end of her life were exemplatory of a great personality. Her death was the
final event which ended her reign.
-- Richard Lederer, The world According to Student Bloopers

Pablo Montilla
www.odyssey.com.uy


6 comments
Comment actions Permalink

Hello Pablo,

Thank you for report. Could you please try again using new libs for agent.
Please put those dll's and exe's files to the
'TeamCity\webapps\ROOT\update\plugins\dotnetPlugin.zip'
archive file to '\bin' folder. After patching this .zip file you build agent(s)
should update automatically.

Could you please try again and report me you result.
Hope it help.

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

PM> Hello, I'm using the sln2005 runner, and even if it doesn't fail,
PM> I'm
PM>
PM> getting NullReference exceptions from the new NUnit integration.
PM>
PM> Should I install any special version of NUnit on the server? I've
PM> got
PM>
PM> NUnit-Net-2.0 2.2.8.
PM>
PM> This in the build log (I hope it's not too wrapped..=):
PM>
PM> [Target "RunNunitTest_generated" in project
PM>
PM> "XWF.sln__generatedBuild1157048596467.msbuild"] Using "NUnit" task
PM> from
PM>
PM> assembly "C:\Program
PM>
PM> Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildSe
PM> rver
PM> .MSBuildLoggers.dll".
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157048596467.msbuild"] Command: [Target
PM> "RunNunitTest_generated" in project
PM>
PM> "XWF.sln__generatedBuild1157048596467.msbuild"] C:\Program
PM>
PM> Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildSe
PM> rver .NUnitLauncher2.0.exe
PM>
PM> "http://localhost:9090/RPC2" "115"
PM>
PM> "src\XWF.Setup\bin\Release\XWF.Commands.Tests.dll;src\XWF.Setup\bin\
PM> Rele
PM> ase\XWF.Core.Tests.dll"
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157048596467.msbuild"] The "NUnit" task is
PM> usin g
PM>
PM> "JetBrains.BuildServer.NUnitLauncher2.0.exe" from "C:\Program
PM>
PM> Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildSe
PM> rver
PM> .NUnitLauncher2.0.exe".
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157048596467.msbuild"] NUnit 2.2.8.0 Error:
PM>
PM> System.NullReferenceException: Object reference not set to an
PM> instance o f
PM>
PM> an object.
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157048596467.msbuild"] at
PM>
PM> JetBrains.BuildServer.NUnitLauncher.NUnitRunner.Run() [Target
PM> "RunNunitTest_generated" in project
PM>
PM> "XWF.sln__generatedBuild1157048596467.msbuild"] NUnit 2.2.8.0 Error:
PM>
PM> System.NullReferenceException: Object reference not set to an
PM> instance o f
PM>
PM> an object.
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157048596467.msbuild"] at
PM>
PM> JetBrains.BuildServer.NUnitLauncher.NUnitRunner.Run()
PM>
PM> The sun never set on the British Empire because the British Empire
PM> is in
PM>
PM> the East and the sun sets in the West. Queen Victoria was the
PM> longest
PM> queen. She sat on a thorn for 63 years. He reclining years and
PM> finally t
PM> he
PM> end of her life were exemplatory of a great personality. Her death
PM> was t
PM> he
PM> final event which ended her reign.
PM> -- Richard Lederer, The world According to Student Bloopers
PM> Pablo Montilla
PM> www.odyssey.com.uy



Attachment(s):
bin.zip
0
Comment actions Permalink

Still no luck, but at least we don't have null refs...=)

Now I'm getting this:
[Project "XWF.sln__generatedBuild1157113592192.msbuild"
(RunSolutionBuild_generated;RunNunitTest_generated target(s)):] Target
"RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157113592192.msbuild" (5s)
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157113592192.msbuild"] Using "NUnit" task from
assembly "C:\Program
Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll".
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157113592192.msbuild"] Command:
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157113592192.msbuild"] C:\Program
Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe
"http://localhost:9090/RPC2" "117"
"src\XWF.Setup\bin\Release\XWF.Commands.Tests.dll;src\XWF.Setup\bin\Release\XWF.Core.Tests.dll"
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157113592192.msbuild"] The "NUnit" task is using
"JetBrains.BuildServer.NUnitLauncher2.0.exe" from "C:\Program
Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe".
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157113592192.msbuild"] Unable to run tests for
"src\XWF.Setup\bin\Release\XWF.Commands.Tests.dll" assembly.
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157113592192.msbuild"] Unable to run tests for
"src\XWF.Setup\bin\Release\XWF.Core.Tests.dll" assembly.

Regards,
Pablo

--

SCARABEE, n. The same as scarabaeus.

He fell by his own hand
Beneath the great oak tree.
He'd traveled in a foreign land.
He tried to make her understand
The dance that's called the Saraband,
But he called it Scarabee.
He had called it so through an afternoon,
And she, the light of his harem if so might be,
Had smiled and said naught. O the body was fair to see,
All frosted there in the shine o' the moon --
Dead for a Scarabee
And a recollection that came too late.
O Fate!
They buried him where he lay,
He sleeps awaiting the Day,
In state,
And two Possible Puns, moon-eyed and wan,
Gloom over the grave and then move on.
Dead for a Scarabee!
Fernando Tapple
-- Ambrose Bierce, "The Devil's Dictionary"

Pablo Montilla
www.odyssey.com.uy


0
Comment actions Permalink

Hello Pablo,

Thank you!
Could you please try new ones?
Do you use some special .dll?
Is there any .exe assembly to reference or to load dynamically?


--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

PM> Still no luck, but at least we don't have null refs...=)
PM>
PM> Now I'm getting this:
PM> [Project "XWF.sln__generatedBuild1157113592192.msbuild"
PM> (RunSolutionBuild_generated;RunNunitTest_generated target(s)):]
PM> Target
PM>
PM> "RunNunitTest_generated" in project
PM>
PM> "XWF.sln__generatedBuild1157113592192.msbuild" (5s) [Target
PM> "RunNunitTest_generated" in project
PM>
PM> "XWF.sln__generatedBuild1157113592192.msbuild"] Using "NUnit" task
PM> from
PM>
PM> assembly "C:\Program
PM>
PM> Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildSe
PM> rver
PM> .MSBuildLoggers.dll".
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157113592192.msbuild"] Command: [Target
PM> "RunNunitTest_generated" in project
PM>
PM> "XWF.sln__generatedBuild1157113592192.msbuild"] C:\Program
PM>
PM> Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildSe
PM> rver .NUnitLauncher2.0.exe
PM>
PM> "http://localhost:9090/RPC2" "117"
PM>
PM> "src\XWF.Setup\bin\Release\XWF.Commands.Tests.dll;src\XWF.Setup\bin\
PM> Rele
PM> ase\XWF.Core.Tests.dll"
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157113592192.msbuild"] The "NUnit" task is
PM> usin g
PM>
PM> "JetBrains.BuildServer.NUnitLauncher2.0.exe" from "C:\Program
PM>
PM> Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildSe
PM> rver
PM> .NUnitLauncher2.0.exe".
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157113592192.msbuild"] Unable to run tests
PM> for
PM>
PM> "src\XWF.Setup\bin\Release\XWF.Commands.Tests.dll" assembly. [Target
PM> "RunNunitTest_generated" in project
PM>
PM> "XWF.sln__generatedBuild1157113592192.msbuild"] Unable to run tests
PM> for
PM>
PM> "src\XWF.Setup\bin\Release\XWF.Core.Tests.dll" assembly.
PM>
PM> Regards,
PM> Pablo
PM> --
PM>
PM> SCARABEE, n. The same as scarabaeus.
PM>
PM> He fell by his own hand
PM> Beneath the great oak tree.
PM> He'd traveled in a foreign land.
PM> He tried to make her understand
PM> The dance that's called the Saraband,
PM> But he called it Scarabee.
PM> He had called it so through an afternoon,
PM> And she, the light of his harem if so might be,
PM> Had smiled and said naught. O the body was fair to see,
PM> All frosted there in the shine o' the moon --
PM> Dead for a Scarabee
PM> And a recollection that came too late.
PM> O Fate!
PM> They buried him where he lay,
PM> He sleeps awaiting the Day,
PM> In state,
PM> And two Possible Puns, moon-eyed and wan,
PM> Gloom over the grave and then move on.
PM> Dead for a Scarabee!
PM> Fernando
PM> Tapple
PM> -- Ambrose Bierce, "The Devil's Dictionary"
PM> Pablo Montilla
PM> www.odyssey.com.uy

Attachment not added (general error): "bin.zip"

0
Comment actions Permalink

Now you have the paths mangled...

[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157131279039.msbuild"] Using "NUnit" task from
assembly "C:\Program
Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll".
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157131279039.msbuild"] Command:
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157131279039.msbuild"] C:\Program
Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe
"http://localhost:9090/RPC2" "120"
"src\XWF.Setup\bin\Release\XWF.Commands.Tests.dll;src\XWF.Setup\bin\Release\XWF.Core.Tests.dll"
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157131279039.msbuild"] The "NUnit" task is using
"JetBrains.BuildServer.NUnitLauncher2.0.exe" from "C:\Program
Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe".
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157131279039.msbuild"] Could not find a part of
the path 'C:\Program
Files\TeamCity\buildAgent\work\XWF\src\XWF.Setup\bin\Release\src\XWF.Setup\bin\Release'.
StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath) at System.IO.Directory.SetCurrentDirectory(String path) at
NUnit.Core.DirectorySwapper..ctor(String directoryName) at
NUnit.Core.TestAssembly.Run(EventListener listener, IFilter filter) at
NUnit.Core.SimpleTestRunner.Run(EventListener listener, Test[] tests)
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157131279039.msbuild"] Unable to run tests for
"src\XWF.Setup\bin\Release\XWF.Commands.Tests.dll" assembly.
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157131279039.msbuild"] Could not find a part of
the path 'C:\Program
Files\TeamCity\buildAgent\work\XWF\src\XWF.Setup\bin\Release\src\XWF.Setup\bin\Release'.
StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath) at System.IO.Directory.SetCurrentDirectory(String path) at
NUnit.Core.DirectorySwapper..ctor(String directoryName) at
NUnit.Core.TestAssembly.Run(EventListener listener, IFilter filter) at
NUnit.Core.SimpleTestRunner.Run(EventListener listener, Test[] tests)
[Target "RunNunitTest_generated" in project
"XWF.sln__generatedBuild1157131279039.msbuild"] Unable to run tests for
"src\XWF.Setup\bin\Release\XWF.Core.Tests.dll" assembly.

Regards,
Pablo
--

Bastards. I don't even like coffee.
-- Richard Darwin

Pablo Montilla
www.odyssey.com.uy

0
Comment actions Permalink

Hello Pablo,

Thank you. Could you please submit this problem to JIRA.

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

PM> Now you have the paths mangled...
PM>
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157131279039.msbuild"] Using "NUnit" task
PM> from
PM> assembly "C:\Program
PM> Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildSe
PM> rver.MSBuildLoggers.dll".
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157131279039.msbuild"] Command:
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157131279039.msbuild"] C:\Program
PM> Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildSe
PM> rver.NUnitLauncher2.0.exe
PM> "http://localhost:9090/RPC2" "120"
PM> "src\XWF.Setup\bin\Release\XWF.Commands.Tests.dll;src\XWF.Setup\bin\
PM> Release\XWF.Core.Tests.dll"
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157131279039.msbuild"] The "NUnit" task is
PM> using
PM> "JetBrains.BuildServer.NUnitLauncher2.0.exe" from "C:\Program
PM> Files\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildSe
PM> rver.NUnitLauncher2.0.exe".
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157131279039.msbuild"] Could not find a
PM> part of
PM> the path 'C:\Program
PM> Files\TeamCity\buildAgent\work\XWF\src\XWF.Setup\bin\Release\src\XWF
PM> .Setup\bin\Release'.
PM> StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String
PM> maybeFullPath) at System.IO.Directory.SetCurrentDirectory(String
PM> path) at
PM> NUnit.Core.DirectorySwapper..ctor(String directoryName) at
PM> NUnit.Core.TestAssembly.Run(EventListener listener, IFilter filter)
PM> at
PM> NUnit.Core.SimpleTestRunner.Run(EventListener listener, Test[]
PM> tests)
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157131279039.msbuild"] Unable to run tests
PM> for
PM> "src\XWF.Setup\bin\Release\XWF.Commands.Tests.dll" assembly.
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157131279039.msbuild"] Could not find a
PM> part of
PM> the path 'C:\Program
PM> Files\TeamCity\buildAgent\work\XWF\src\XWF.Setup\bin\Release\src\XWF
PM> .Setup\bin\Release'.
PM> StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String
PM> maybeFullPath) at System.IO.Directory.SetCurrentDirectory(String
PM> path) at
PM> NUnit.Core.DirectorySwapper..ctor(String directoryName) at
PM> NUnit.Core.TestAssembly.Run(EventListener listener, IFilter filter)
PM> at
PM> NUnit.Core.SimpleTestRunner.Run(EventListener listener, Test[]
PM> tests)
PM> [Target "RunNunitTest_generated" in project
PM> "XWF.sln__generatedBuild1157131279039.msbuild"] Unable to run tests
PM> for
PM> "src\XWF.Setup\bin\Release\XWF.Core.Tests.dll" assembly.
PM> Regards,
PM> Pablo
PM> --
PM> Bastards. I don't even like coffee.
PM> -- Richard Darwin
PM> Pablo Montilla
PM> www.odyssey.com.uy


0
Comment actions Permalink

Done:

http://www.jetbrains.net/jira/browse/TW-786


On Wed, 06 Sep 2006 11:54:22 -0300, Eugene Petrenko
<eugene.petrenko@jetbrains.com> wrote:

Hello Pablo,

>

Thank you. Could you please submit this problem to JIRA.

>



--

--

Error #0054: Computer needs propane refill.

Pablo Montilla
www.odyssey.com.uy

0

Please sign in to leave a comment.