From: Gary F. <sf_...@ma...> - 2006-01-27 15:09:14
|
GOUIGOUX Jean-Philippe wrote: > My previous message was sent too quickly : I did not see the answers > following Timothy's message. > > Thanks, Gary, for the help. But I must have missed something, as I > cannot get it right. I am NUnit-testing an assembly called > TBordNETWork.dll. I added TBordNETWork.dll.config in the same > directory, and it contains the following : > What is the name of the assembly that contains the tests, not the one that contains the code being tested? It's the one containing the tests that needs the config file, not the one that you're testing. If the tests are in the same assembly as the code being tested, then that's ok. > <nunit2> > <formatter type="Xml" usefile="true" > extension=".xml" outputdir="./temp"/> > <test > assemblyname="./tests/TBordNETWork.dll" > appconfig="./tests/TBordNETWork.dll.config"> > This isn't the default VS configuration, so I'm not sure how you're organizing things. Have you moved everything from the test project's bin/Debug (or bin/Release) into the tests directory? Or have you changed the target directory for the compilation from bin/Debug to something else? Otherwise, it's not clear how either NAnt or NUnit can find everything it needs to run the test. Gary |