Skip to content

Commit b75e289

Browse files
committed
SVY-10539 fix ng client tests runner
1 parent 9159e01 commit b75e289

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

servoy_ngclient/client_tests/run_tests.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project default="run_tests">
33
<property name="basedir" value="."/>
4+
<property name="tsc" value="/usr/share/tomcat7/NodeJS/node-v4.2.3-linux-x64/bin/tsc"/>
45

56
<property name="karma_run_once.conf" value="./karma.conf.js"/>
67
<property name="karma_run_on_file_change.conf" value="./karma_run_on_file_change.conf.js"/>
78

89
<property file="./development_mode.properties" /> <!-- if the file is present karma will run in continuous mode for development when run_tests is ran -->
910
<property name="karma.conf" value="${karma_run_once.conf}"/>
1011

12+
<target name="typescript_transpiling">
13+
<echo message="Transpiling ${project}"/>
14+
<exec executable="${tsc}" failonerror="true">
15+
<arg line="-p ${project}" />
16+
</exec>
17+
</target>
18+
1119
<!-- checks if used dependencies from package.json are outdated should be used manualy from time to time-->
1220
<target name="check_outdated">
1321
<exec executable="bash" dir="${basedir}" osfamily="unix"
@@ -59,6 +67,15 @@
5967
</target>
6068

6169
<target name="run_tests" depends="install_karma_if_necessary">
70+
<!-- do TypeScript transpiling of sablo -->
71+
<antcall target="typescript_transpiling">
72+
<param name="project" value="../../sablo"/>
73+
</antcall>
74+
<!-- do TypeScript transpiling of servoy_ngclient -->
75+
<antcall target="typescript_transpiling">
76+
<param name="project" value=".."/>
77+
</antcall>
78+
6279
<exec executable="cmd" dir="${basedir}" osfamily="windows"
6380
failonerror="true">
6481
<arg value="/c"/>

0 commit comments

Comments
 (0)