--- /dev/null
+// Karma configuration
+// Generated on Tue Oct 04 2016 13:53:46 GMT+0200 (CEST)
+
+module.exports = function(config) {
+ config.set({
+
+ // base path that will be used to resolve all patterns (eg. files, exclude)
+ basePath: '../',
+
+
+ // frameworks to use
+ // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
+ frameworks: ['jasmine'],
+
+
+ // list of files / patterns to load in the browser
+ files: [
+ '.config/pretest.js',
+ {
+ pattern: 'spec/fixture.css',
+ included: false,
+ served: true
+ },
+ {
+ pattern: 'spec/fixture.svg',
+ included: false,
+ served: true
+ },
+ 'dist/svg.js',
+ 'spec/spec/**/*.js'
+ ],
+
+
+ // list of files to exclude
+ exclude: [],
+
+
+ // preprocess matching files before serving them to the browser
+ // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
+ preprocessors: {},
+
+
+ // test results reporter to use
+ // possible values: 'dots', 'progress'
+ // available reporters: https://npmjs.org/browse/keyword/karma-reporter
+ reporters: ['progress'],
+
+
+ // configure the coverage reporter
+ coverageReporter: {},
+
+
+ // web server port
+ port: 9875,
+
+
+ // enable / disable colors in the output (reporters and logs)
+ colors: true,
+
+
+ // level of logging
+ // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
+ logLevel: config.LOG_ERROR,
+
+
+ // enable / disable watching file and executing tests whenever any file changes
+ autoWatch: false,
+
+
+ // start these browsers
+ // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
+ browsers: ['PhantomJS'],
+
+ // Continuous Integration mode
+ // if true, Karma captures browsers, runs the tests and exits
+ singleRun: true,
+
+ // Concurrency level
+ // how many browser should be started simultaneous
+ concurrency: 1
+ })
+}
- fixed an error in `SVG.FX.step`, if custom properties is added to `Array.prototype` (#549)
- updated dev dependencies; request and gulp-chmod - `npm run build` now requires nodejs 4.x
- added code coverage https://coveralls.io/github/svgdotjs/svg.js
+- added `npm run test:quick` which aim at being fast rather than correct - great for git hooks
# 2.3.6 (21/10/2016)
-- fixed leading and trailing space in SVG.PointArray would return NaN for some points (695f26a) (#527)
+- fixed leading and trailing space in SVG.PointArray would return NaN for some points (695f26a) (#529)
- make SVG.FX.loop modify the last situation instead of the current one (#532)
- fixed test of `SVG.FX.afterAll` (#534)
- fixed `SVG.FX.speed()` (#536)
"scripts": {
"build": "gulp",
"test": "karma start .config/karma.conf.js --single-run",
+ "test:quick": "karma start .config/karma.quick.js",
"docs": "gulp docs"
},
"devDependencies": {
"karma-coverage": "^1.1.1",
"karma-firefox-launcher": "^1.0.0",
"karma-jasmine": "^1.0.2",
+ "karma-phantomjs-launcher": "^1.0.2",
"request": "^2.78.0"
}
}