Skip to content

Commit

Permalink
add coveralls configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Giamir Buoncristiani committed Nov 21, 2016
1 parent 272cd52 commit d97e361
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# Unit Testing React Redux
# Unit Testing React Redux [![Build Status](https://snap-ci.com/giamir/unit-testing-react-redux/branch/master/build_image)](https://snap-ci.com/giamir/unit-testing-react-redux/branch/master)

Helpful patterns to unit test a react redux app

Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -20,6 +20,7 @@
"babel-loader": "^6.2.5",
"babel-plugin-istanbul": "^3.0.0",
"babel-preset-airbnb": "^2.1.1",
"coveralls": "^2.11.15",
"css-loader": "^0.26.0",
"enzyme": "^2.6.0",
"file-loader": "^0.9.0",
Expand Down
6 changes: 2 additions & 4 deletions testing/karma.conf.js
Expand Up @@ -3,9 +3,7 @@ const webpackConfig = require('./webpack.test.config');
module.exports = (config) => {
config.set({
frameworks: ['jasmine'],
browsers: process.env.TRAVIS
? ['ChromeTravis']
: ['Chrome'],
browsers: ['Chrome'],

files: [
{
Expand Down Expand Up @@ -36,7 +34,7 @@ module.exports = (config) => {
coverageReporter: {
reporters: [
{
type: 'html',
type: 'lcov',
dir: 'coverage'
},
{ type: 'text-summary' }
Expand Down
9 changes: 6 additions & 3 deletions testing/webpack.test.config.js
Expand Up @@ -4,14 +4,17 @@ const webpack = require('webpack');
module.exports = {
devtool: 'inline-source-map',
module: {
preloaders: [
{ test: /\.jsx?$/, loader: 'istanbul', exclude: [/node_modules/, /specs/] }
],
loaders: [
{ test: /\.json$/, loader: 'json-loader' },
{ test: /\.css$/, loader: 'null-loader' },

{ test: /\.jsx?$/, loader: 'babel', exclude: [/node_modules/] },
{
test: /\.jsx?$/,
loader: 'babel',
exclude: [/node_modules/, /specs/],
query: { plugins: ['istanbul'] }
},
{ test: /\.jpe?g$|\.gif$|\.png$|\.svg$/i, loader: 'null-loader' }
]
},
Expand Down

0 comments on commit d97e361

Please sign in to comment.