2012-07-29 20:48:34 +00:00
|
|
|
var testrunner = require('qunit');
|
|
|
|
|
|
2012-08-08 22:28:07 +00:00
|
|
|
testrunner.options.log.summary = true;
|
2012-07-31 18:55:49 +00:00
|
|
|
testrunner.options.log.tests = false;
|
|
|
|
|
testrunner.options.log.assertions = false;
|
|
|
|
|
|
2014-03-08 19:40:43 +00:00
|
|
|
testrunner.options.coverage = true;
|
2015-12-26 13:33:00 +00:00
|
|
|
testrunner.options.maxBlockDuration = 120000;
|
2014-03-08 19:40:43 +00:00
|
|
|
|
2012-07-29 20:48:34 +00:00
|
|
|
testrunner.run({
|
2013-09-03 18:15:12 +00:00
|
|
|
deps: "./test/fixtures/test_script.js",
|
2013-12-14 11:10:42 +00:00
|
|
|
code: "./dist/fabric.js",
|
2012-07-29 20:48:34 +00:00
|
|
|
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',
|
2012-08-20 16:22:11 +00:00
|
|
|
'./test/unit/canvas_static.js',
|
2013-02-03 16:01:01 +00:00
|
|
|
'./test/unit/gradient.js',
|
2013-02-04 19:47:02 +00:00
|
|
|
'./test/unit/pattern.js',
|
2013-10-25 22:15:42 +00:00
|
|
|
'./test/unit/shadow.js',
|
2013-11-22 16:30:55 +00:00
|
|
|
'./test/unit/object_interactivity.js',
|
2015-06-07 07:13:29 +00:00
|
|
|
'./test/unit/object_origin.js',
|
2013-11-22 16:30:55 +00:00
|
|
|
'./test/unit/itext.js'
|
2012-07-29 20:48:34 +00:00
|
|
|
]
|
|
|
|
|
}, function(err, report) {
|
2013-07-28 13:42:08 +00:00
|
|
|
if (err) {
|
|
|
|
|
console.log(err);
|
|
|
|
|
process.exit(1);
|
|
|
|
|
}
|
2012-08-08 22:28:07 +00:00
|
|
|
if(report.failed > 0){
|
|
|
|
|
process.on('exit', function() {
|
|
|
|
|
process.exit(1);
|
|
|
|
|
});
|
|
|
|
|
}
|
2013-06-13 11:39:17 +00:00
|
|
|
});
|