Add and target to prepare running tests in node.js
This commit is contained in:
+7
-3
@@ -1,5 +1,9 @@
|
|||||||
{ "dependencies" : {
|
{
|
||||||
|
"dependencies" : {
|
||||||
"require-from-string" : "1.2.0"
|
"require-from-string": "1.2.0"
|
||||||
|
},
|
||||||
|
"devDependencies" : {
|
||||||
|
"mocha": "3.2.0",
|
||||||
|
"mocha-teamcity-reporter": "1.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+8
-1
@@ -44,7 +44,6 @@
|
|||||||
|
|
||||||
<move file="${dependencies}/${node.full.name}" tofile="${dependencies}/node"/>
|
<move file="${dependencies}/${node.full.name}" tofile="${dependencies}/node"/>
|
||||||
<delete dir="${dependencies}/${node.full.name}"/>
|
<delete dir="${dependencies}/${node.full.name}"/>
|
||||||
<delete file="${node.tar.gz}"/>
|
|
||||||
|
|
||||||
<sequential if:set="isWindows">
|
<sequential if:set="isWindows">
|
||||||
<get src="${url.node.exe}" dest="${node.exe}" usetimestamp="true"/>
|
<get src="${url.node.exe}" dest="${node.exe}" usetimestamp="true"/>
|
||||||
@@ -120,4 +119,12 @@
|
|||||||
<target name="unzip-jslib.jar">
|
<target name="unzip-jslib.jar">
|
||||||
<unzip src="${output}/kotlinc/lib/kotlin-stdlib-js.jar" dest="${js.stdlib.output.dir}"/>
|
<unzip src="${output}/kotlinc/lib/kotlin-stdlib-js.jar" dest="${js.stdlib.output.dir}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="run-nodejs-tests" description="Run JS backend tests in node.js" depends="download-nodejs-and-npm">
|
||||||
|
<npm command="install" dir="js/js.translator/testData" />
|
||||||
|
<exec executable="node_modules/mocha/bin/mocha" dir="js/js.translator/testData" failonerror="true">
|
||||||
|
<arg value="--reporter"/>
|
||||||
|
<arg value="mocha-teamcity-reporter"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<project xmlns:if="ant:if" xmlns:unless="ant:unless" name="Update Dependencies" default="update">
|
<project xmlns:if="ant:if" xmlns:unless="ant:unless" name="Update Dependencies" default="update">
|
||||||
<import file="common.xml" optional="false"/>
|
<import file="common.xml" optional="false"/>
|
||||||
|
<import file="node_utils.xml" optional="false"/>
|
||||||
|
|
||||||
<property name="automerge_dummy" value="This property is used to trick git merge. Do not delete empty lines around."/>
|
<property name="automerge_dummy" value="This property is used to trick git merge. Do not delete empty lines around."/>
|
||||||
<property name="ideaVersion" value="171-SNAPSHOT"/>
|
<property name="ideaVersion" value="171-SNAPSHOT"/>
|
||||||
@@ -318,6 +319,9 @@
|
|||||||
usetimestamp="true"
|
usetimestamp="true"
|
||||||
build.number.pattern="\d+\s-\sKotlin\s[\w-+\.]+"
|
build.number.pattern="\d+\s-\sKotlin\s[\w-+\.]+"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<!-- node.js -->
|
||||||
|
<antcall target="download-nodejs-and-npm"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<macrodef name="get-protobuf-and-rename-packages">
|
<macrodef name="get-protobuf-and-rename-packages">
|
||||||
|
|||||||
Reference in New Issue
Block a user