1. Changed default Spring.build target for Spring.Template.Velocity.Tests to test to prevent hiding of test failures in CC.net build 2. Added NVelocity.dll and resource embedding in build target Spring.Template.Velocity.Tests.build and changed default target to test 3. Removed tx xmlns from test VelocityEngineFactoryObjectTests.xml
65 lines
2.3 KiB
XML
65 lines
2.3 KiB
XML
<?xml version="1.0" ?>
|
|
<project name="Spring.Template.Velocity.Tests" default="test" xmlns="http://nant.sf.net/schemas/nant.xsd">
|
|
<!--
|
|
Required properties:
|
|
* current.bin.dir - (path) root level to build to
|
|
* build.debug - (true|false) debug build?
|
|
* current.build.defines.csc - framework-specific build defines
|
|
-->
|
|
<target name="build">
|
|
|
|
<csc target="library" define="${current.build.defines.csc}"
|
|
warnaserror="true"
|
|
debug="${current.build.debug}"
|
|
output="${current.bin.dir}/${project::get-name()}.dll"
|
|
doc="${current.bin.dir}/${project::get-name()}.xml">
|
|
<nowarn>
|
|
<warning number="${nowarn.numbers.test}" />
|
|
</nowarn>
|
|
<sources failonempty="true">
|
|
<include name="**/*.cs" />
|
|
<include name="../CommonAssemblyInfo.cs" />
|
|
</sources>
|
|
<references basedir="${current.bin.dir}">
|
|
<include name="*.dll" />
|
|
<include name="Nvelocity.dll" />
|
|
<exclude name="${project::get-name()}.dll" />
|
|
</references>
|
|
<resources basedir="." prefix="Spring.Template.Velocity.Tests" dynamicprefix="true" failonempty="true">
|
|
<include name="**/*.xml" />
|
|
</resources>
|
|
</csc>
|
|
<copy todir="${current.bin.dir}">
|
|
<fileset basedir="${project::get-name()}/Data">
|
|
<include name="**/*.xml" />
|
|
<include name="**/*.test" />
|
|
</fileset>
|
|
</copy>
|
|
<copy todir="${current.bin.dir}">
|
|
<fileset basedir="${project::get-name()}">
|
|
<include name="**/*.config" />
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
<target name="test" depends="build">
|
|
<nunit2>
|
|
<formatter type="Plain" />
|
|
<formatter type="Xml" usefile="true" extension=".xml"
|
|
outputdir="${current.bin.dir}/results" />
|
|
<test assemblyname="${current.bin.dir}/${project::get-name()}.dll"
|
|
appconfig="${current.bin.dir}/${project::get-name()}.dll.config" />
|
|
</nunit2>
|
|
</target>
|
|
|
|
<target name="test-mono-1.0" >
|
|
<nunit2>
|
|
<formatter type="Plain" />
|
|
<formatter type="Xml" usefile="true" extension=".xml"
|
|
outputdir="${current.bin.dir}/results" />
|
|
<test assemblyname="${bin.dir}/net/1.1/${current.build.config}/${project::get-name()}.dll"
|
|
appconfig="${bin.dir}/net/1.1/${current.build.config}/${project::get-name()}.dll.config" />
|
|
</nunit2>
|
|
</target>
|
|
|
|
</project>
|