-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.build
37 lines (28 loc) · 1.54 KB
/
test.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0"?>
<project name="AG.Bsc" default="test">
<!-- global project settings -->
<property name="basedir" value="."/>
<property name="project.name" value="AG.Bsc"/>
<property name="build.dir" value="build"/>
<property name="tools.dir" value="build-support\tools"/>
<property name="build.configuration" value="Debug"/>
<property name="currentframework" value="${framework::get-version(framework::get-runtime-framework())}"/>
<property name="build.number" if="${environment::variable-exists('BUILD_NUMBER') and not property::exists('ignore.build.number')}" value="${environment::get-variable('BUILD_NUMBER')}"/>
<property name="build.number" if="${not environment::variable-exists('BUILD_NUMBER') or property::exists('ignore.build.number')}" value="rc"/>
<target name="test">
<property name="dll2test" value="AG.Framework.Tests"/>
<property name="namespace2test" value="AG.Framework.Domain"/>
<call target="nunit-test-command-line"/>
</target>
<target name="nunit-test-command-line">
<property name="dll2testPath" value="${build.dir}/VS.Net.2008/${dll2test}/${build.configuration}/${dll2test}.dll"/>
<exec
basedir="${basedir}\${tools.dir}\nunit-2\bin"
program="nunit-console.exe" workingdir="${path::get-directory-name(dll2testPath)}" verbose="true">
<arg value="/fixture:${namespace2test}"/>
<arg path="${dll2testPath}"/>
<arg value="/xml:${basedir}\${dll2test}-TestResults.xml"/>
<arg value="/nologo"/>
</exec>
</target>
</project>