Commit 4ec58ff1 authored by Chris's avatar Chris

Adding automated testing

parent 17bd688f
node_modules/
image: js-testing
tests:
script:
- export NODE_ENV="testing"
- npm install
- grunt qunit
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
qunit: {
all: ['tests/*.html']
}
});
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.registerTask('default', ['qunit']);
}
{
"name": "set-js",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-qunit": "~0.7.0",
"phantomjs": "~1.9.19",
"qunitjs": "~1.20.0"
}
}
......@@ -6,12 +6,12 @@
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
<title>BasicSet Tests</title>
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.15.0.css">
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="http://code.jquery.com/qunit/qunit-1.15.0.js"></script>
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
<script src="../src/BasicSet.js"></script>
<script src="BasicSet.qunit.js"></script>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment