Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
b48d30e4
Commit
b48d30e4
authored
Feb 10, 2017
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reintroduce coverage report for JavaScript (!9133)
parent
8a1441fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
2 deletions
+24
-2
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
changelogs/unreleased/cover-my-karma.yml
changelogs/unreleased/cover-my-karma.yml
+4
-0
config/karma.config.js
config/karma.config.js
+7
-0
config/webpack.config.js
config/webpack.config.js
+1
-0
package.json
package.json
+10
-0
No files found.
.gitlab-ci.yml
View file @
b48d30e4
...
@@ -252,7 +252,7 @@ karma:
...
@@ -252,7 +252,7 @@ karma:
name
:
coverage-javascript
name
:
coverage-javascript
expire_in
:
31d
expire_in
:
31d
paths
:
paths
:
-
coverage-javascript/
default/
-
coverage-javascript/
lint-doc
:
lint-doc
:
stage
:
test
stage
:
test
...
@@ -395,7 +395,7 @@ pages:
...
@@ -395,7 +395,7 @@ pages:
-
mv public/ .public/
-
mv public/ .public/
-
mkdir public/
-
mkdir public/
-
mv coverage/ public/coverage-ruby/ ||
true
-
mv coverage/ public/coverage-ruby/ ||
true
-
mv coverage-javascript/
default/
public/coverage-javascript/ ||
true
-
mv coverage-javascript/ public/coverage-javascript/ ||
true
-
mv eslint-report.html public/ ||
true
-
mv eslint-report.html public/ ||
true
artifacts
:
artifacts
:
paths
:
paths
:
...
...
changelogs/unreleased/cover-my-karma.yml
0 → 100644
View file @
b48d30e4
---
title
:
Reintroduce coverage report for JavaScript
merge_request
:
9133
author
:
winniehell
config/karma.config.js
View file @
b48d30e4
...
@@ -15,6 +15,13 @@ module.exports = function(config) {
...
@@ -15,6 +15,13 @@ module.exports = function(config) {
preprocessors
:
{
preprocessors
:
{
'
spec/javascripts/**/*.js?(.es6)
'
:
[
'
webpack
'
,
'
sourcemap
'
],
'
spec/javascripts/**/*.js?(.es6)
'
:
[
'
webpack
'
,
'
sourcemap
'
],
},
},
reporters
:
[
'
progress
'
,
'
coverage-istanbul
'
],
coverageIstanbulReporter
:
{
reports
:
[
'
html
'
,
'
text-summary
'
],
dir
:
'
coverage-javascript/
'
,
subdir
:
'
.
'
,
fixWebpackSourcePaths
:
true
},
webpack
:
webpackConfig
,
webpack
:
webpackConfig
,
webpackMiddleware
:
{
stats
:
'
errors-only
'
},
webpackMiddleware
:
{
stats
:
'
errors-only
'
},
});
});
...
...
config/webpack.config.js
View file @
b48d30e4
...
@@ -54,6 +54,7 @@ var config = {
...
@@ -54,6 +54,7 @@ var config = {
exclude
:
/
(
node_modules|vendor
\/
assets
)
/
,
exclude
:
/
(
node_modules|vendor
\/
assets
)
/
,
loader
:
'
babel-loader
'
,
loader
:
'
babel-loader
'
,
options
:
{
options
:
{
plugins
:
[
'
istanbul
'
],
presets
:
[
presets
:
[
[
"
es2015
"
,
{
"
modules
"
:
false
}],
[
"
es2015
"
,
{
"
modules
"
:
false
}],
'
stage-2
'
'
stage-2
'
...
...
package.json
View file @
b48d30e4
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
"
webpack-dev-server
"
:
"
^2.3.0
"
"
webpack-dev-server
"
:
"
^2.3.0
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
babel-plugin-istanbul
"
:
"
^4.0.0
"
,
"
eslint
"
:
"
^3.10.1
"
,
"
eslint
"
:
"
^3.10.1
"
,
"
eslint-config-airbnb-base
"
:
"
^10.0.1
"
,
"
eslint-config-airbnb-base
"
:
"
^10.0.1
"
,
"
eslint-plugin-filenames
"
:
"
^1.1.0
"
,
"
eslint-plugin-filenames
"
:
"
^1.1.0
"
,
...
@@ -45,9 +46,18 @@
...
@@ -45,9 +46,18 @@
"
jasmine-core
"
:
"
^2.5.2
"
,
"
jasmine-core
"
:
"
^2.5.2
"
,
"
jasmine-jquery
"
:
"
^2.1.1
"
,
"
jasmine-jquery
"
:
"
^2.1.1
"
,
"
karma
"
:
"
^1.4.1
"
,
"
karma
"
:
"
^1.4.1
"
,
"
karma-coverage-istanbul-reporter
"
:
"
^0.2.0
"
,
"
karma-jasmine
"
:
"
^1.1.0
"
,
"
karma-jasmine
"
:
"
^1.1.0
"
,
"
karma-phantomjs-launcher
"
:
"
^1.0.2
"
,
"
karma-phantomjs-launcher
"
:
"
^1.0.2
"
,
"
karma-sourcemap-loader
"
:
"
^0.3.7
"
,
"
karma-sourcemap-loader
"
:
"
^0.3.7
"
,
"
karma-webpack
"
:
"
^2.0.2
"
"
karma-webpack
"
:
"
^2.0.2
"
},
"nyc"
:
{
"exclude"
:
[
"spec/javascripts/test_bundle.js"
,
"spec/javascripts/**/*_spec.js"
,
"spec/javascripts/**/*_spec.js.es6"
,
"app/assets/javascripts/droplab/**/*"
]
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment