forked from svn2github/fleXive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.shared-tests.xml
39 lines (34 loc) · 1.96 KB
/
build.shared-tests.xml
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
38
39
<?xml version="1.0" encoding="UTF-8"?>
<project>
<!--
Shared macros and definitions for running flexive-based tests in external applications,
using the JBoss embedded EJB container.
@author Daniel Lichtenberger ([email protected]), UCS - unique computing solutions gmbh (http://www.ucs.at)
@version $Rev$
-->
<import file="build.shared-properties.xml"/>
<!-- Define TestNG tasks -->
<taskdef resource="testngtasks" classpathref="flexive.shared-environment.path"/>
<macrodef name="run-tests">
<attribute name="groups" description="Comma-separated list of TestNG groups to be executed"/>
<attribute name="outputdir" description="The output directory for the test reports."/>
<attribute name="loglevel" description="Sets the log level for the test cases" default="info"/>
<attribute name="classpathref" default="flexive.shared-environment.path"
description="The classpath for the testNG container. Additional elements may be specified in the body using classpath elements."/>
<element name="body" optional="false" implicit="true"/>
<sequential>
<testng classpathref="@{classpathref}" outputdir="@{outputdir}" groups="@{groups}">
<!-- Workaround for IPv6 issues on Linux -->
<jvmarg value="-Djava.net.preferIPv4Stack=true"/>
<!-- Enable logging -->
<!-- Log4j -->
<!--jvmarg value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger"/>
<jvmarg value="-Dlog4j.configuration=testlog4j.xml"/-->
<!-- Simple (console) logging -->
<jvmarg value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog"/>
<jvmarg value="-Dorg.apache.commons.logging.simplelog.defaultlog=@{loglevel}"/>
<body/>
</testng>
</sequential>
</macrodef>
</project>