When I have the following:

 

        <echo message="Testing Tandem Add Card..."/>

        <nunit2 haltonfailure="false" failonerror="false" verbose="true">

            <formatter type="Xml" usefile="true" outputdir="${build.dir}\results" />

            <test assemblyname="${build.dir}\TandemTests.dll" appconfig="${build.dir}\TandemTests.dll.config" testname="visa.dps.ppc.tandem.TandemAddCardTests" />

        </nunit2>

 

Where TandemTests.dll.config looks like:

 

<configuration>

    <appSettings>

            <add key="LogPath" value="C:\\Program Files\\Visa\\ApplicationServer\\appLogs\\" />

    </appSettings>

    <system.diagnostics>

                        <trace autoflush="true" indentsize="4">

                                    <listeners>

                                                <add name="debugOut" type="System.Diagnostics.DefaultTraceListener" />

                                                <add name="consoleOut" type="visa.dps.ppc.DynamicFileTraceListener, ErrorLog,Version=3.0.0.0,Culture=neutral,PublicKeyToken=53d3d319953ae13c" initializeData="ApplicationServer.log" />

                                                <add name="eventOut" type="visa.dps.ppc.EventTraceListener, ErrorLog,Version=3.0.0.0,Culture=neutral,PublicKeyToken=53d3d319953ae13c" />

                                                <remove name="debugOut" />

                                    </listeners>

                        </trace>

                        <switches>

                                    <add name="TraceSwitch" value="3" />

                        </switches>

    </system.diagnostics>

</configuration>

 

I get the following error:

 

System.Configuration.ConfigurationException Exception in configuration section handler (D:\Projects\Visa\GCE-SL\Application Server Code\build\debug-3.0.0\TandemTests.dll.config line 5)
at visa.dps.ppc.tandem.TandemAddCardTests.TestAddCardInstant() in d:\Projects\Visa\GCE-SL\Application Server Code\NUnit Tests\TandemTests\AddCardTests.cs:line 109

 

If I take the line out that specifies appConfig then the test runs just fine.

 

Kevin

 


From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 16, 2005 12:18 AM
To: Burton, Kevin; 'Pat Pattillo'; [EMAIL PROTECTED]
Cc: nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] Configuration error?

 

Hi,

 

Is that assembly either located in the GAC or in the same directory as you NUnit Test assembly ?

 

Do you have a repro for this ?

 

Gert

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burton, Kevin
Sent: woensdag 16 maart 2005 3:44
To: Pat Pattillo; [EMAIL PROTECTED]
Cc: nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] Configuration error?

 

I would be very interested in a solution. But it is good to know that this is a real problem that others are experiencing.

 

Kevin

 


From: Pat Pattillo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 7:37 PM
To: Burton, Kevin
Cc: [EMAIL PROTECTED]
Subject: RE: [Nant-users] Configuration error?

 

There are 3 of us now.... I wonder if we have enough clout to petition the project authors?

 -----Original Message-----
From: Burton, Kevin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 10:06 PM
To: Pat Pattillo
Subject: RE: [Nant-users] Configuration error?

Sorry, I just didn’t pass in the configuration file for these tests. It seemed very specific to those tests but I was never able to find out an acceptable workaround so I just removed the config from the test. I am still looking for an answer if you find one.

 

Thank you.

 

Kevin

 


From: Pat Pattillo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 9:16 PM
To: Burton, Kevin
Subject: [Nant-users] Configuration error?

 

Hi Kevin,

 

Did you ever lick this one? URL ="" href="http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg05721.html">http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg05721.html   I am having the same problem and it seems to occur when code using MS app blocks runs under nunit under nant.

 

Hopefully, you might have resolved this. Thanks for letting me know if you did!

 

Sincerely,

Pat Pattillo

Reply via email to