fabric.js/test-visual.js
Andrea Bogazzi 9a734a36b9
Add visual test suites draft (#5068)
* adding visual tests

* working setup

* test travis setup

* unbuilt

* maybe we do not need this

* maybe this

* maybe we do not need this
2018-06-26 11:41:03 +02:00

28 lines
660 B
JavaScript

var testrunner = require('node-qunit');
testrunner.options.log.summary = true;
testrunner.options.log.tests = false;
testrunner.options.log.assertions = false;
testrunner.options.log.coverage = false;
testrunner.options.coverage = true;
testrunner.options.maxBlockDuration = 120000;
testrunner.run({
deps: './test/fixtures/test_script.js',
code: './dist/fabric.js',
tests: [
'./test/visual/svg_import.js',
],
// tests: ['./test/unit/object_clipPath.js',],
}, function(err, report) {
if (err) {
console.log(err);
process.exit(1);
}
if(report.failed > 0){
process.on('exit', function() {
process.exit(1);
});
}
});