The following are line 72 and 73 of TestSystem.vb: ------------------------------------------------------------------- Dim config As NameValueCollection = CType(System.Configuration.ConfigurationSettings.GetConfig("appSettings"), NameValueCollection) Assertion.Assert("No config file.", config.Count > 0) ------------------------------------------------------------------- I think that on line 72, config is not get created somehow. So I got error on line 73.
My NAnt build file(only listed below related with Nunit2) looks like this: ----------------------------------------------------------------- <target name="nunittest" description="run the tests using nunit"> <property name="basename.working" value="bestbuy.enterprise.tests"/> <property name="build.bin.dir" value="${build.root}/bin/debug"/> <nunit2> <test assemblyname="${nant.project.basedir}\${build.bin.dir}\${basename.working}.dll" outfile="${build.bin.dir}\${basename.working}.results.xml" verbose="true"/> </nunit2> </target> ----------------------------------------------------------------- I have to put ${nant.project.basedir} to make absolute path of my assembly in order to work and I got the same error message as console. I didn't get the error when I ran GUI version of NUnit. So what's the difference between them? By the way, I ran the most recent build of NAnt without ${nant.project.basedir} but I got even more error messages with something else. Gang -----Original Message----- From: Scott Hernandez [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 4:49 PM To: Wang, Gang Cc: [EMAIL PROTECTED] Subject: Re: [nunit-developer] Nunit2 error on console What is on line 73 of TestSystem.vb? Could this be a path/current directory problem? What does you NAnt build file look like? ----- Original Message ----- From: "Wang, Gang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 03, 2003 12:28 PM Subject: [nunit-developer] Nunit2 error on console > We are testing a dll on NUnit 2.0 GUI and console. It goes fine in the GUI version. We get the following error in the console. We also get the same error when we use NUnit task with NAnt. > > ------------------ > NUnit version 2.0.6 > Copyright (C) 2002 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. > Copyright (C) 2000-2002 Philip Craig. > All Rights Reserved. > ..NUnit.Diagnostic log: > DLL test subject information: > bestbuy.enterprise, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ae2eeb8800 > 7b24f > file:///C:/projects/Enterprise .NET/dev/build/bin/debug/bestbuy.enterprise.DLL > c:\docume~1\spmgxw\locals~1\temp\nunit20\shadowcopycache\631849767723425000\ test > s\assembly\dl\d101747a\0ae272ec_18fac201\bestbuy.enterprise.dll > > log4net:ERROR Logger: No appenders could be found for logger [bestbuy.enterprise > .Configuration.AppSettings] > log4net:ERROR Logger: Please initialize the log4net system properly. > .F..F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F..F.F.F.F.F.F.F............F.F.F. F.F. > F.F.F. > > Tests run: 52, Failures: 36, Not run: 0, Time: 20.34375 seconds > > Failures: > 1) bestbuy.enterprise.TestSystem.Tests.SystemTests.TestConfigExistence : Object > reference not set to an instance of an object. > at bestbuy.enterprise.TestSystem.Tests.SystemTests.TestConfigExistence() in C > :\projects\Enterprise .NET\dev\bestbuy.enterprise.tests\src\TestSystem\TestSyste > m.vb:line 73 > ------------------------------------------ > > Any ideas? ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users