Socket
Socket
Sign inDemoInstall

karma

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma - npm Package Compare versions

Comparing version 0.9.0-dart to 0.9.0

install-log4js.js

1

adapter/qunit.js

@@ -5,3 +5,2 @@ (function(window) {

return function (runner) {
console.log('STARTING TESTS');
(function (tc, runner) {

@@ -8,0 +7,0 @@ var totalNumberOfTest = 0;

@@ -0,1 +1,37 @@

<a name="v0.9.0"></a>
## v0.9.0 (2013-04-03)
#### Bug Fixes
* global error handler should propagate errors ([dec0c196](https://github.com/karma-runner/karma/commit/dec0c19651c251dcbc16c44a57775bcb37f78cf1), closes [#368](https://github.com/karma-runner/karma/issues/368))
* **config:**
* Check if configFilePath is a string. Fixes #447. ([98724b6e](https://github.com/karma-runner/karma/commit/98724b6ef5a6ba60d487e7b774056832c6ca9d8c))
* do not change urlRoot even if proxied ([8c138b50](https://github.com/karma-runner/karma/commit/8c138b504046a3aeb230b71e1049aa60ee46905d))
* **coverage:** always send a result object ([62c3c679](https://github.com/karma-runner/karma/commit/62c3c6790659f8f82f8a2ca5646aa424eeb28842), closes [#365](https://github.com/karma-runner/karma/issues/365))
* **init:**
* generate plugins and frameworks config ([17798d55](https://github.com/karma-runner/karma/commit/17798d55988d61070f2b9f59574217208f2b497e))
* fix for failing "testacular init" on Windows ([0b5b3853](https://github.com/karma-runner/karma/commit/0b5b385383f13ac8f29fa6e591a8634eefa04ab7))
* **preprocessor:** resolve relative patterns to basePath ([c608a9e5](https://github.com/karma-runner/karma/commit/c608a9e5a34a49da2971add8759a9422b74fa6fd), closes [#382](https://github.com/karma-runner/karma/issues/382))
* **runner:** send exit code as string ([ca75aafd](https://github.com/karma-runner/karma/commit/ca75aafdf6b7b425ee151c2ae4ede37933befe1f), closes [#403](https://github.com/karma-runner/karma/issues/403))
#### Features
* display the version when starting ([39617395](https://github.com/karma-runner/karma/commit/396173952addce3f6e904310686a42b102aa53f8), closes [#391](https://github.com/karma-runner/karma/issues/391))
* allow multiple preprocessors ([1d17c1aa](https://github.com/karma-runner/karma/commit/1d17c1aacf607d6c4269f05df97d024bc9ca994e))
* allow plugins ([125ab4f8](https://github.com/karma-runner/karma/commit/125ab4f88a7cf49fd7df32264a9847847e2326ca))
* **config:**
* always ignore the config file itself ([103bc0f8](https://github.com/karma-runner/karma/commit/103bc0f878a8870770c8a8afce0a3fbf8a516ea7))
* normalize string preprocessors into an array ([4dde1608](https://github.com/karma-runner/karma/commit/4dde16087d0a704a47528d44e23ace0c536d8c72))
* **web-server:** allow custom file handlers and mime types ([2df88287](https://github.com/karma-runner/karma/commit/2df8828742041fd09c0b45d6a62ebd7552116589))
#### Breaking Changes
* reporters, launchers, preprocessors, adapters are separate plugins now, in order to use them, you need to install the npm package (probably add it as a `devDependency` into your `package.json`) and load in the `karma.conf.js` with `plugins = ['karma-jasmine', ...]`. Karma ships with couple of default plugins (karma-jasmine, karma-chrome-launcher, karma-phantomjs-launcher).
* frameworks (such as jasmine, mocha, qunit) are configured using `frameworks = ['jasmine'];` instead of prepending `JASMINE_ADAPTER` into files.
<a name="v0.8.0"></a>

@@ -2,0 +38,0 @@ ## v0.8.0 (2013-03-18)

@@ -102,3 +102,3 @@ var path = require('path');

.describe('no-colors', 'Do not use colors when reporting or printing logs.')
.describe('reporters', 'List of reporters (available: dots, progress, junit).')
.describe('reporters', 'List of reporters (available: dots, progress, junit, growl, coverage).')
.describe('browsers', 'List of browsers to start (eg. --browsers Chrome,ChromeCanary,Firefox).')

@@ -105,0 +105,0 @@ .describe('capture-timeout', '<integer> Kill browser if does not capture in given time [ms].')

@@ -143,3 +143,3 @@ var fs = require('fs');

// TODO(vojta): remove
var CONST_ERR = '%s is not supported anymore.\n\tPlease use `framworks = ["%s"];` instead.';
var CONST_ERR = '%s is not supported anymore.\n\tPlease use `frameworks = ["%s"];` instead.';
['JASMINE', 'MOCHA', 'QUNIT'].forEach(function(framework) {

@@ -192,3 +192,3 @@ [framework, framework + '_ADAPTER'].forEach(function(name) {

var configFromFile = configFilePath ? readConfigFile(configFilePath) : {};
var configFromFile = helper.isString(configFilePath) ? readConfigFile(configFilePath) : {};

@@ -241,7 +241,9 @@ // default config

// resolve basePath
config.basePath = path.resolve(path.dirname(configFilePath), config.basePath);
if (helper.isString(configFilePath)) {
// resolve basePath
config.basePath = path.resolve(path.dirname(configFilePath), config.basePath);
// always ignore the config file itself
config.exclude.push(configFilePath);
// always ignore the config file itself
config.exclude.push(configFilePath);
}

@@ -248,0 +250,0 @@ return normalizeConfig(config);

@@ -65,2 +65,3 @@ var fs = require('fs');

// TODO(vojta): ignore changes (add/change/remove) when in the middle of refresh
// TODO(vojta): do not glob patterns that are watched (both on init and refresh)
var List = function(patterns, excludes, emitter, preprocess) {

@@ -67,0 +68,0 @@ var batchInterval = 250;

@@ -8,3 +8,2 @@ var readline = require('readline');

var helper = require('./helper');
var launcher = require('./launcher');
var logger = require('./logger');

@@ -54,14 +53,29 @@ var constant = require('./constants');

var validateBrowser = function(value) {
var proto = launcher[value + 'Browser'].prototype;
var defaultCmd = proto.DEFAULT_CMD[process.platform];
var envCmd = process.env[proto.ENV_CMD];
var validateBrowser = function(name) {
var moduleName = 'karma-' + name.toLowerCase().replace('canary', '') + '-launcher';
if (!fs.existsSync(defaultCmd) && (!envCmd || !fs.existsSync(envCmd))) {
log.warn('No binary for %s.\n Create symlink at "%s", or set "%s" env variable.\n' +
colors.NYAN, value, defaultCmd, proto.ENV_CMD);
try {
require(moduleName);
} catch (e) {
log.warn('Missing "%s" plugin.\n npm install %s --save' + colors.NYAN, moduleName, moduleName);
}
// TODO(vojta): check if the path resolves to a binary
};
var validateFramework = function(name) {
try {
require('karma-' + name);
} catch (e) {
log.warn('Missing "karma-%s" plugin.\n npm install karma-%s --save' + colors.NYAN, name, name);
}
};
var validateRequireJs = function(useRequire) {
if (useRequire) {
validateFramework('requirejs');
}
};
var questions = [{

@@ -71,3 +85,4 @@ id: 'framework',

hint: 'Press tab to list possible options. Enter to move to the next question.',
options: ['jasmine', 'mocha', 'qunit', '']
options: ['jasmine', 'mocha', 'qunit', ''],
validate: validateFramework
}, {

@@ -79,2 +94,3 @@ id: 'requirejs',

options: ['no', 'yes'],
validate: validateRequireJs,
boolean: true

@@ -279,20 +295,33 @@ }, {

if (answers.requirejs) {
files.unshift('REQUIRE_ADAPTER');
files.unshift('REQUIRE');
}
var frameworks = [];
if (answers.framework) {
var framework = answers.framework.toUpperCase();
files.unshift(framework + '_ADAPTER');
files.unshift(framework);
frameworks.push(answers.framework);
}
if (answers.requirejs) {
frameworks.push('requirejs');
}
var plugins = frameworks.map(function(name) {
return 'karma-' + name;
});
answers.browsers.forEach(function(name) {
if (name === 'ChromeCanary') {
return;
}
plugins.push('karma-' + name.toLowerCase() + '-launcher');
});
return {
DATE: new Date(),
BASE_PATH: basePath,
FRAMEWORKS: frameworks.map(quote).join(', '),
FILES: formatFiles(files),
EXCLUDE: answers.exclude ? formatFiles(answers.exclude.map(quote)) : '',
AUTO_WATCH: answers.autoWatch ? 'true' : 'false',
BROWSERS: answers.browsers.map(quote).join(', ')
BROWSERS: answers.browsers.map(quote).join(', '),
PLUGINS: formatFiles(plugins.map(quote))
};

@@ -299,0 +328,0 @@ };

@@ -65,3 +65,3 @@ var url = require('url');

if (err.code === 'ECONNRESET' && req.socket.destroyed) {
log.debug('failed to proxy %s (browser hang up the socket)', req.url);
log.debug('failed to proxy %s (browser hung up the socket)', req.url);
} else {

@@ -68,0 +68,0 @@ log.warn('failed to proxy %s (%s)', req.url, err);

@@ -26,49 +26,57 @@ {

"Shyam Seshadri <shyamseshadri@gmail.com>",
"Andrew Martin <sublimino@gmail.com>",
"Ilya Volodin <ivolodin@vistaprint.com>",
"Daniel Aleksandersen <code@daniel.priv.no>",
"Iristyle <Iristyle@github>",
"Marcello Nuccio <marcello.nuccio@gmail.com>",
"Igor Minar <iiminar@gmail.com>",
"Daniel Aleksandersen <code@daniel.priv.no>",
"Ethan J. Brown <ethan_j_brown@hotmail.com>",
"Hugues Malphettes <hmalphettes@gmail.com>",
"Bulat Shakirzyanov <mallluhuct@gmail.com>",
"Igor Minar <iiminar@gmail.com>",
"rdodev <rubenoz@gmail.com>",
"Chad Smith <chad@configit.com>",
"Igor Minar <igor@angularjs.org>",
"Alexander Shtuchkin <ashtuchkin@gmail.com>",
"James Shore <jshore@jamesshore.com>",
"Kevin Ortman <kevin_ortman@msn.com>",
"Andy Joslin <andytjoslin@gmail.com>",
"Nish <nishantpatel611@gmail.com>",
"Nuno Job <nunojobpinto@gmail.com>",
"Pascal Hartig <phartig@rdrei.net>",
"Patrick Lussan <patrick.lussan@componize.com>",
"Patrik Henningsson <patrik.henningsson@gmail.com>",
"Pete Bacon Darwin <pete@bacondarwin.com>",
"Pete Swan <pete@indabamusic.com>",
"Brian Ford <btford@umich.edu>",
"AvnerCohen <israbirding@gmail.com>",
"Yi Wang <e@yi-wang.me>",
"ahaurw01 <ahaurwitz@gmail.com>",
"Alexander Shtuchkin <ashtuchkin@gmail.com>",
"lanshunfang <lanshunfang@gmail.com>",
"ngiebel <ngiebel@starkinvestments.com>",
"pavelgj <pavelgj@gmail.com>",
"hrgdavor <hrgdavor@gmail.com>",
"Andy Joslin <andytjoslin@gmail.com>",
"AvnerCohen <israbirding@gmail.com>",
"Brian Ford <btford@umich.edu>",
"Chad Smith <chad@configit.com>",
"David Jensen <david@frode.(none)>",
"David Souther <davidsouther@gmail.com>",
"Ed Rooth <ed.rooth@rackspace.com>",
"David Souther <davidsouther@gmail.com>",
"Eldar Jafarov <djkojb@gmail.com>",
"Ethan J. Brown <ethan_j_brown@hotmail.com>",
"Fred Sauer <fredsa@google.com>"
"Fred Sauer <fredsa@google.com>",
"Igor Minar <igor@angularjs.org>",
"James Ford <jford@psyked.co.uk>",
"James Shore <jshore@jamesshore.com>",
"Kevin Ortman <kevin_ortman@msn.com>",
"Milan Aleksic <milanaleksic@gmail.com>"
],
"dependencies": {
"di": "git://github.com/vojtajina/node-di.git",
"socket.io": "0.9.13",
"chokidar": "0.5.3",
"glob": "3.1.20",
"minimatch": "0.2.9",
"http-proxy": "0.8.7",
"optimist": "0.3.5",
"coffee-script": "1.6.2",
"rimraf": "2.1.4",
"q": "0.8.12",
"socket.io": "~0.9.13",
"chokidar": "~0.6",
"glob": "~3.1.21",
"minimatch": "~0.2",
"http-proxy": "~0.10",
"optimist": "~0.3",
"coffee-script": "~1.6",
"rimraf": "~2.1",
"q": "~0.9",
"colors": "0.6.0-1",
"lodash": "1.0.0-rc.3",
"lodash": "~1.1",
"pause": "0.0.1",
"mime": "1.2.7",
"log4js": "0.5.6"
"mime": "~1.2",
"log4js": "~0.5.8 || ~0.6.1"
},

@@ -82,15 +90,16 @@ "peerDependencies": {

"devDependencies": {
"grunt": "~0.4.1",
"grunt-simple-mocha": "https://github.com/Dignifiedquire/grunt-simple-mocha/tarball/0.10",
"grunt-contrib-jshint": "~0.2",
"mocks": ">= 0.0.10",
"which": ">= 1.0.5",
"sinon-chai": ">= 2.2.0",
"chai": ">= 1.4.0",
"mocha": "~1.8.2",
"sinon": ">= 1.5.2",
"timer-shim": ">= 0.1.1",
"chai-as-promised": ">= 3.2.3",
"mock-http-response": "~0.1.1",
"qq": ">= 0.3.5",
"grunt": "~0.4",
"grunt-simple-mocha": "git://github.com/yaymukund/grunt-simple-mocha.git",
"grunt-contrib-jshint": "~0.3",
"grunt-coffeelint": "~0.0.6",
"mocks": "~0.0.10",
"which": "~1.0",
"sinon-chai": "~2.3",
"chai": "~1.5",
"mocha": "~1.8",
"sinon": "~1.6",
"timer-shim": "~0.2",
"chai-as-promised": "~3.2",
"mock-http-response": "~0.1",
"qq": "~0.3",
"karma-jasmine": "*",

@@ -121,3 +130,6 @@ "karma-mocha": "*",

},
"version": "0.9.0-dart"
"scripts": {
"install": "node install-log4js.js"
},
"version": "0.9.0"
}

@@ -91,3 +91,3 @@ (function(window, document, io) {

this.complete();
return true;
return false;
};

@@ -94,0 +94,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc