views:

813

answers:

3

I am getting the following Warnings while running tests using cc.net

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets (,): warning MSB3245: Could not resolve this reference. Could not locate the assembly "nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. C:\srce\TP\ITTests\ITTests\ITTests\Tests.vb (1,): warning BC40056: Namespace or type specified in the Imports 'NUnit.Framework' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\srce\TP\ITTests\ITTests\ITTests\kingTests.vb (1,): warning BC40056: Namespace or type specified in the Imports 'NUnit.Framework' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Tests run: 0, Failures: 0, Not run: 0, Time: 0 seconds
No Tests Run This project doesn't have any tests

Any idea why? as All paths seems to be correct

Kind Regards

A: 

Did you install NUnit on the CC.NET server?

leppie
yes. nunit is installed
sam
Is the correct version installed? And into the GAC?
leppie
This is a compile-time error. Does this work when you build outside of CruiseControl.NET? What are you calling to do the build in CC.NET (what is in your <tasks> block?)
bentsai
A: 

The first place to check is your CCNET log file. (Assuming it's enabled) Logs can be found in the same folder as the cruise control program. It may show that you're trying to test a DLL that does not exist. (perhaps you're trying to test a Debug DLL instead of a Release DLL or vice versa)

Myster
A: 

Hi All, does anyone have an answer to this one? we need to resolve this same issue on our CCNet server which we have installed NUnit on. I have read somewhere that this is something to do with the xslt that CCNet creates for the test log being wrong or something.

Thanks in advance for your help.

Cheers

Adam

If you just don't see nunit output in your dashboard page, this is probably a xsl problem. Check http://stackoverflow.com/questions/3705502/cruise-control-net-not-showing-nant-build-errors/3709184#3709184 . But if you have the same error as above, this is an error executing tests and without yoru project config i can't do much.
Benjamin Baumann