I am working on a dotnet 2008, Nunit 2.6,Nant0.91 application. I am using log4net for my logging purposes.
当试图通过 Nunit 运行测试案例时, 生成了一个日志文件, 但是当我试图通过 Nant 运行时, 我无法运行测试案例 。
我在张贴我建筑档案中的完整信息:
<?xml version="1.0" encoding="utf-8"?>
<project name="w2" default="run" basedir=".">
<!--Here we are building DLL -->
<target name="build">
<mkdir dir="Libraries" />
<mkdir dir="Output"/>
<csc target="library" output="Libraries/${project::get-
name()}.dll">
<sources>
<include name="C:\Users\rm99699\Documents\Visual Studio
2008\Projects\w2\w2\*.cs" />
<include name="C:\Users\rm99699\Documents\Visual Studio 2008
Projects\w2\w2\app.config.xml"/>
</sources>
<references basedir="Libraries">
<include name="${nant::scan-probing-
paths( nunit.framework.dll )}" />
<include name="${nant::scan-probing-paths( log4net.dll )}" />
<include name="D:selenium-
dotnet-2.8.0
et35WebDriver.dll" />
<include name="D:selenium-
dotnet-2.8.0
et35WebDriver.Support.dll" />
<include name="D:selenium-
dotnet-2.8.0
et35ThoughtWorks.Selenium.Core.dll" />
</references>
</csc>
</target>
<!--Here we are running testcases -->
<target name="run" depends="build">
<nunit2 failonerror="false" >
<formatter type="Xml" usefile="true" extension=".xml"
outputdir="Output"/>
<test assemblyname="C:\Users\rm99699\Documents\Visual Studio 2008
Projects\w2\w2\Libraries\w2.dll" appconfig="C:\Users\rm99699
Documents\Visual Studio 2008\Projects\w2\w2\app.config">
<references basedir="Libraries">
<include name="${nant::scan-probing-
paths( nunit.framework.dll )}" />
<include name="D:selenium-dotnet-2.8.0
et35WebDriver.dll" />
<include name="D:selenium-
dotnet-2.8.0
et35WebDriver.Support.dll" />
<include name="D:selenium-
dotnet-2.8.0
et35ThoughtWorks.Selenium.Core.dll" />
<include name ="D:
ant-0.91-bin
ant-0.91inlibcommon
2.0log4net.dll" />
<!-- <include name="${nant::scan-probing-paths( log4net.dll )}" />-->
</references>
</test>
</nunit2>
</target>
</project>
根据我的建筑文件 是否有明显错误 阻止我处理测试案例?