Skip to content

Commit

Permalink
test to run unit tests via command line
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcAntoine-Arnaud committed Aug 28, 2017
1 parent 380b825 commit 36edb6e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 21 deletions.
8 changes: 8 additions & 0 deletions Gruntfile.js
Expand Up @@ -46,6 +46,11 @@ module.exports = function (grunt) {
"-W032": true
}
}
},
qunit: {
files: [
'./src/test/webapp/unit_tests.html'
]
}
});

Expand All @@ -59,8 +64,11 @@ module.exports = function (grunt) {

grunt.loadNpmTasks('grunt-sync');

grunt.loadNpmTasks('grunt-contrib-qunit');

grunt.registerTask('build', ['jshint', 'sync', 'npmcopy', 'browserify']);

grunt.registerTask('clean', ['clean']);

grunt.registerTask('test', 'qunit');
};
53 changes: 32 additions & 21 deletions package.json
@@ -1,28 +1,39 @@
{
"name" : "imsc",
"description" : "Renders IMSC1 documents to HTML5 fragments",
"version" : "1.0.0-rc.3",
"license" : "BSD-2-Clause",
"homepage" : "https://github.com/sandflow/imscJS",
"bugs" : "https://github.com/sandflow/imscJS/issues",
"repository" : "github:sandflow/imscJS",
"files" : ["src/main/js", "README.txt"],
"keywords" : ["imsc1", "ttml", "imsc"],
"author" : "Pierre-Anthony Lemieux <pal@sandflow.com>",
"main" : "src/main/js/main.js",
"name": "imsc",
"description": "Renders IMSC1 documents to HTML5 fragments",
"version": "1.0.0-rc.3",
"license": "BSD-2-Clause",
"homepage": "https://github.com/sandflow/imscJS",
"bugs": "https://github.com/sandflow/imscJS/issues",
"repository": "github:sandflow/imscJS",
"files": [
"src/main/js",
"README.txt"
],
"keywords": [
"imsc1",
"ttml",
"imsc"
],
"author": "Pierre-Anthony Lemieux <pal@sandflow.com>",
"main": "src/main/js/main.js",
"dependencies": {
"sax" : "1.2.1"
"sax": "1.2.1"
},
"devDependencies" : {
"devDependencies": {
"grunt": "latest",
"grunt-sync": "latest",
"grunt-contrib-clean" : "latest",
"grunt-npmcopy" : "latest",
"qunit-assert-close" : "latest",
"qunitjs" : "latest",
"grunt-browserify" : "latest",
"grunt-contrib-jshint" : "latest",
"jszip" : "latest",
"filesaver.js-npm" : "latest"
"grunt-contrib-clean": "latest",
"grunt-npmcopy": "latest",
"qunit-assert-close": "latest",
"grunt-contrib-qunit": "latest",
"qunitjs": "latest",
"grunt-browserify": "latest",
"grunt-contrib-jshint": "latest",
"jszip": "latest",
"filesaver.js-npm": "latest"
},
"scripts": {
"test": "grunt test"
}
}

0 comments on commit 36edb6e

Please sign in to comment.