Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
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
edx
ecommerce
Commits
37464ad1
Commit
37464ad1
authored
Aug 08, 2015
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reporting JS coverage alongside Python
XCOM-567
parent
620f99b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
.travis.yml
+7
-1
Makefile
+2
-1
karma.conf.js
+4
-1
No files found.
.travis.yml
View file @
37464ad1
...
...
@@ -7,10 +7,15 @@ sudo: false
cache
:
directories
:
-
$HOME/.cache/pip
addons
:
apt
:
packages
:
-
lcov
before_install
:
-
"
export
DISPLAY=:99.0"
-
"
sh
-e
/etc/init.d/xvfb
start"
install
:
-
gem install coveralls-lcov
-
pip install -r requirements/test.txt
-
pip install coveralls
-
make requirements.js
...
...
@@ -21,4 +26,5 @@ branches:
only
:
-
master
after_success
:
coveralls
-
coveralls-lcov -v -n coverage/report-lcov/lcov.info > js-coverage.json
-
coveralls --merge=js-coverage.json
Makefile
View file @
37464ad1
...
...
@@ -41,9 +41,10 @@ serve:
clean
:
find
.
-name
'*.pyc'
-delete
coverage erase
rm
-rf
assets/ ecommerce/static/build
rm
-rf
assets/ ecommerce/static/build
coverage
validate_js
:
rm
-rf
coverage
gulp
test
gulp lint
gulp jscs
...
...
karma.conf.js
View file @
37464ad1
...
...
@@ -46,7 +46,10 @@ module.exports = function(config) {
// Karma coverage config
coverageReporter
:
{
type
:
'text'
reporters
:
[
{
type
:
'text'
},
{
type
:
'lcov'
,
subdir
:
'report-lcov'
}
]
},
// test results reporter to use
...
...
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