Created
January 14, 2012 01:04
-
-
Save mapserver2007/1609681 to your computer and use it in GitHub Desktop.
node.js+QUnit+QUnit-TAPでテスト実行(Jenkins用)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<project name="node-test" basedir="." default="run"> | |
<property name="prove" location="/usr/bin/prove" /> | |
<property name="npm" location="/usr/local/bin/npm"/> | |
<target name="run" depends="registry,npm,test"/> | |
<target name="registry"> | |
<exec executable="${npm}"> | |
<arg value="config"/> | |
<arg value="set"/> | |
<arg value="registry"/> | |
<arg value="http://registry.npmjs.org/"/> | |
</exec> | |
</target> | |
<target name="npm"> | |
<exec executable="${npm}"> | |
<arg value="install"/> | |
</exec> | |
</target> | |
<target name="test"> | |
<exec executable="${prove}"> | |
<arg value="--ext=.test.js"/> | |
<arg value="--exec=node"/> | |
<arg value="-l"/> | |
<arg value="test"/> | |
<arg value="--harness"/> | |
<arg value="TAP::Harness::JUnit"/> | |
</exec> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment