Skip to content

Instantly share code, notes, and snippets.

@mapserver2007
Created January 14, 2012 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mapserver2007/1609681 to your computer and use it in GitHub Desktop.
Save mapserver2007/1609681 to your computer and use it in GitHub Desktop.
node.js+QUnit+QUnit-TAPでテスト実行(Jenkins用)
<?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