Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
origin-web-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Java-于龙
origin-web-common
Commits
38223e10
Commit
38223e10
authored
Oct 12, 2017
by
Samuel Padgett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Capture code coverage for karma tests
parent
41e0cc28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
.gitignore
.gitignore
+1
-2
karma.conf.js
test/karma.conf.js
+10
-3
No files found.
.gitignore
View file @
38223e10
node_modules
coverage
.tmp
.bundle
.idea
...
...
@@ -7,5 +8,3 @@ phantomjsdriver.log
.DS_Store
test/test-results.xml
npm-debug.log
test/karma.conf.js
View file @
38223e10
...
...
@@ -48,7 +48,7 @@ module.exports = function(config) {
// use dots reporter, as travis terminal does not support escaping sequences
// possible values: 'dots', 'progress'
// CLI --reporters progress
reporters
:
[
'progress'
,
'junit'
],
reporters
:
[
'progress'
,
'junit'
,
'coverage'
],
junitReporter
:
{
// will be resolved to basePath (in the same way as files/exclude patterns)
...
...
@@ -58,7 +58,6 @@ module.exports = function(config) {
// web server port
port
:
8443
,
colors
:
true
,
// level of logging
...
...
@@ -90,6 +89,14 @@ module.exports = function(config) {
// report which specs are slower than 500ms
// CLI --report-slower-than 500
reportSlowerThan
:
500
reportSlowerThan
:
500
,
preprocessors
:
{
// source files, that you wanna generate coverage for
// do not include tests or libraries
'src/filters/*.js'
:
[
'coverage'
],
'src/services/*.js'
:
[
'coverage'
],
'src/ui-services/*.js'
:
[
'coverage'
]
}
});
};
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