fabric.js/test.js

51 lines
1.3 KiB
JavaScript
Raw Normal View History

var testrunner = require('qunit');
testrunner.options.log.summary = true;
testrunner.options.log.tests = false;
testrunner.options.log.assertions = false;
2014-03-08 19:40:43 +00:00
testrunner.options.coverage = true;
testrunner.options.maxBlockDuration = 120000;
2014-03-08 19:40:43 +00:00
testrunner.run({
deps: "./test/fixtures/test_script.js",
2013-12-14 11:10:42 +00:00
code: "./dist/fabric.js",
tests: [
2012-08-10 15:14:56 +00:00
'./test/unit/rect.js',
'./test/unit/ellipse.js',
'./test/unit/color.js',
'./test/unit/circle.js',
'./test/unit/line.js',
'./test/unit/polyline.js',
'./test/unit/polygon.js',
'./test/unit/path.js',
'./test/unit/path_group.js',
'./test/unit/observable.js',
'./test/unit/object.js',
'./test/unit/text.js',
'./test/unit/util.js',
'./test/unit/image.js',
2013-08-09 17:59:30 +00:00
'./test/unit/image_filters.js',
2012-08-10 15:14:56 +00:00
'./test/unit/group.js',
'./test/unit/parser.js',
'./test/unit/canvas.js',
'./test/unit/canvas_static.js',
2013-02-03 16:01:01 +00:00
'./test/unit/gradient.js',
'./test/unit/pattern.js',
'./test/unit/shadow.js',
'./test/unit/object_interactivity.js',
2015-06-07 07:13:29 +00:00
'./test/unit/object_origin.js',
'./test/unit/itext.js'
]
}, function(err, report) {
2013-07-28 13:42:08 +00:00
if (err) {
console.log(err);
process.exit(1);
}
if(report.failed > 0){
process.on('exit', function() {
process.exit(1);
});
}
});