Title: Re: Nant Support For NUnit For 2.2.5

Hi, Gary

Sorry about the misleading reply title. I changed that right, I think, and hope my mail now comes in raw text format as well, so it is easier for you to read.

The content of my tests directory is :

        AglNETCommon.dll
        AglNETDB.dll
        AglNETIntWin.dll
        FarPoint.CalcEngine.dll
        FarPoint.Excel.dll
        FarPoint.PluginCalendar.WinForms.dll
        FarPoint.Win.dll
        FarPoint.Win.Input.dll
        FarPoint.Win.Spread.dll
        Microsoft.Web.Services.dll
        NoyauNETDB.dll
        NoyauNETIntWin.dll
        NoyauNETWork.dll
        nunit.framework.dll
        SoapSrvNoyauNet_WS.dll
        SoapSrvTBordNET_WS.dll
        TBordNETDB.dll
        TBordNETIntWin.dll
        TBordNETWork.dll
        TBordNETWork.dll.config

So, it contains the assembly to be tested (which itself contains the test fixtures), and all the dependent assemblies, plus the config file for the tested assembly. When I launch the tests on this directory using the NUnit GUI, they work fine (provided I previously delete the .config file, as my Nunit program version is indeed 2.2.5).

The TBordNETWork.dll.config file contains the following text :

        <?xml version="1.0" encoding="ISO-8859-1"?>
        <configuration>
          <runtime>
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
              <dependentAssembly>
                <assemblyIdentity name="nunit.framework" publicKeyToken="96d09a1eb7f44a77" culture="Neutral" />
                <bindingRedirect oldVersion="2.2.5.0" newVersion="2.2.0.0" />
              </dependentAssembly>
            </assemblyBinding>
          </runtime>
        </configuration>

I checked the encoding and it is indeed ISO-8859-1 (I already has strange problems because of people recording UTF-8 characters with ISO-8859-1 header). So there should not be any problem from there.

The NAnt output for the <nunit2> task is as follows :

           [nunit2] Assembly "N:\N05-TableauxDeBord\tests\TBordNETWork.dll" is using ver
        sion 2.2.5.0 of the NUnit framework. If any problems arise, then either rebuild
        this assembly using version 2.2.0.0 of the NUnit Framework or use a binding redi
        rect from version 2.2.5.0 to version 2.2.0.0 of the NUnit Framework.

        BUILD SUCCEEDED - 0 non-fatal error(s), 1 warning(s)

It is indeed just a warning, instead of an error when I was using 0.85 RC3. I am using the nightly build from 20th of January 2006.

But finally, when I look at the tests report, I only get :

        <?xml version="1.0" encoding="utf-8" standalone="no"?>
        <!--This file represents the results of running a test suite-->
        <test-results name="N:\N05-TableauxDeBord\tests\TBordNETWork.dll" total="0" failures="0" not-run="0"    date="31/01/2006" time="10:36">

          <test-suite name="N:\N05-TableauxDeBord\tests\TBordNETWork.dll" success="True" time="0" asserts="0">
            <results />
          </test-suite>
        </test-results>

The <nunit2> task is written as follows :

        <nunit2>
                <formatter type="Xml" usefile="true" extension=".xml" outputdir="./temp"/>
                <test assemblyname="./tests/TBordNETWork.dll" appconfig="./tests/TBordNETWork.dll.config">
                        <categories>
                                <exclude name="Long"/>
                        </categories>
                </test>
        </nunit2>

and I also tried without the appconfig="..." attribute, letting NAnt/NUnit retrieving it by its name.

I am sorry I cannot send out any compiled code, though, as it is not obfuscated yet, and quite confidential. If it can help, I can create a dummy assembly that follows the same line of NAnt build and send it out for tests.

Again, thanks for the continued assistance.

JP

------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to