Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

karma-webpack-example

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-webpack-example - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.travis.yml

9

karma.conf.js

@@ -24,4 +24,9 @@ var webpack = require("webpack");

coverageReporter: {
type: 'html',
dir: 'build/coverage/'
dir: 'build/coverage/',
reporters: [
{ type: 'html' },
{ type: 'text' },
{ type: 'text-summary' }
]
},

@@ -28,0 +33,0 @@

{
"name": "karma-webpack-example",
"version": "1.0.0",
"version": "1.0.1",
"description": "Karma + Webpack + Mocha + Chai + Istanbul",
"main": "index.js",
"scripts": {
"test": "node ./node_modules/karma/bin/karma start --single-run --browsers PhantomJS"
"test": "node ./node_modules/karma/bin/karma start --single-run --browsers PhantomJS",
"test-gulp": "gulp"
},

@@ -18,3 +19,4 @@ "repository": {

"chai",
"istanbul"
"istanbul",
"gulp"
],

@@ -29,16 +31,18 @@ "author": "gabel",

"bundle-loader": "^0.5.2",
"chai": "^2.2.0",
"istanbul": "^0.3.13",
"istanbul-instrumenter-loader": "^0.1.2",
"karma-coverage": "^0.2.7",
"karma-mocha": "^0.1.10",
"karma-phantomjs-launcher": "^0.1.4",
"karma-spec-reporter": "0.0.18",
"karma-webpack": "^1.5.0",
"mocha": "^2.2.1",
"mocha-loader": "^0.7.1",
"phantomjs-polyfill": "0.0.1",
"webpack": "^1.4.12",
"webpack-dev-server": "^1.6.6"
"chai": "^3.5.0",
"gulp": "^3.8.11",
"istanbul": "^0.4.5",
"istanbul-instrumenter-loader": "^1.2.0",
"karma": "^1.4.1",
"karma-coverage": "^1.1.1",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.2",
"karma-spec-reporter": "0.0.26",
"karma-webpack": "^2.0.2",
"mocha": "^3.2.0",
"mocha-loader": "^1.1.0",
"phantomjs-polyfill": "0.0.2",
"webpack": "^1.14.0",
"webpack-dev-server": "^1.16.3"
}
}

@@ -0,3 +1,7 @@

[![Build Status](https://travis-ci.org/gabel/karma-webpack-example.svg?branch=master)](https://travis-ci.org/gabel/karma-webpack-example)
# karma-webpack-example
Karma + Webpack + Mocha + Chai + Istanbul
##Installation

@@ -18,16 +22,49 @@

```
> karma-webpack-example@1.0.0 test karma-webpack-example
$ npm test
> karma-webpack-example@1.0.0 test /Users/d060690/karma-webpack-example
> node ./node_modules/karma/bin/karma start --single-run --browsers PhantomJS
INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (your OS)]: Connected on socket g34oTr_PlQaujbE5WlIJ with id 16200709
# ...
03 02 2017 08:31:17.038:INFO [karma]: Karma v1.4.1 server started at http://0.0.0.0:9876/
03 02 2017 08:31:17.044:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
03 02 2017 08:31:17.067:INFO [launcher]: Starting browser PhantomJS
03 02 2017 08:31:18.045:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket yME3wmuxdm0t5GHIAAAA with id 92073047
hexColorLuminance
V should return a luminanced color
V should change the background of an element
✓ should return a luminanced color
✓ should change the background of an element
PhantomJS 1.9.8 (your OS): Executed 2 of 2 SUCCESS (0.005 secs / 0 secs)
PhantomJS 2.1.1 (Mac OS X 0.0.0): Executed 2 of 2 SUCCESS (0.02 secs / 0.002 secs)
TOTAL: 2 SUCCESS
```
-----------------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
-----------------------|----------|----------|----------|----------|----------------|
Example/ | 83.33 | 50 | 100 | 83.33 | |
hexColorLuminance.js | 83.33 | 50 | 100 | 83.33 | 10,14,17 |
-----------------------|----------|----------|----------|----------|----------------|
All files | 83.33 | 50 | 100 | 83.33 | |
-----------------------|----------|----------|----------|----------|----------------|
=============================== Coverage summary ===============================
Statements : 83.33% ( 15/18 )
Branches : 50% ( 5/10 )
Functions : 100% ( 3/3 )
Lines : 83.33% ( 15/18 )
================================================================================
```
## Gulp
added usage in a gulp scenario
try it via "npm run test-gulp" or simply "gulp" in the
projects directory if you have gulp installed globally
## Istanbul Coverage
![Istanbul-HTML-Coverage](docs/assets/istanbul-coverage-html.png)
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