Node.js is installed on the Jenkins server? ✓
If that’s what you’re using, this is how I set up testing on the Jenkins server.
build.xml
script (see below) <?xml version="1.0" encoding="UTF-8"?>
<project name="My Project" default="build" basedir=".">
<target name="testacular-e2e" description="Testacular AngularJS e2e Tests">
<echo message="Running the tests ..." />
<exec executable="testacular" output="test_out/output.txt" failonerror="true">
<arg value="start" />
<arg value="./config/testacular-e2e.conf.js" />
</exec>
<echo message="Tests done" />
</target>
</project>
basePath = '../';
files = [
ANGULAR_SCENARIO,
ANGULAR_SCENARIO_ADAPTER,
'test/e2e/**/*.js'
];
autoWatch = false;
browsers = ['PhantomJS'];
reporters = ['dots', 'junit'];
singleRun = true;
proxies = {
'/': 'http://localhost:8000/'
};
junitReporter = {
outputFile: 'test_out/e2e.xml',
suite: 'e2e'
};