├── README.md ├── index.js ├── package.json └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | A quiet reporter for [karma](http://karma-runner.github.io/). 2 | 3 | The builtin `progress` reporter is nice, and it maintains a running 4 | status line for each browser, like: 5 | 6 | PhantomJS 1.9.7 (Linux): Executed 27 of 27 SUCCESS 7 | 8 | This is cool, but if you're not running in a real terminal (e.g 9 | travis-ci), you'll get status lines smattered across your logs. 10 | 11 | This reporter only prints output from the browser, and adds none of its own. 12 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | var BaseReporter = require('karma/lib/reporters/base'); 2 | var QuietReporter = function(formatError) { 3 | BaseReporter.call(this, formatError); 4 | 5 | this.writeCommonMsg = function(msg) { 6 | this.write(msg + '\n'); 7 | }; 8 | 9 | this.onBrowserLog = function(browser, log, type) { 10 | this.writeCommonMsg(log); 11 | }; 12 | 13 | this.onSpecComplete = this.onBrowserError = function() {}; 14 | }; 15 | 16 | module.exports = { 17 | 'reporter:quiet': ['type', QuietReporter] 18 | }; 19 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "karma-quiet-reporter", 3 | "version": "0.1.2", 4 | "description": "A Karma plugin. Report results with minimal noise.", 5 | "repository": { 6 | "type": "git", 7 | "url": "git://github.com/onilabs/karma-quiet-reporter.git" 8 | }, 9 | "main": "index.js", 10 | "keywords": [ 11 | "karma-plugin", 12 | "karma-reporter", 13 | "quiet" 14 | ], 15 | "author": "Tim Cuthbertson ", 16 | "peerDependencies": { 17 | "karma": ">=0.9" 18 | }, 19 | "license": "MIT" 20 | } 21 | 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Tim Cuthbertson 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 18 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 20 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | --------------------------------------------------------------------------------