Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ jobs: # a collection of steps
# Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
path: backend/reports/coverage/lcov-report
destination: backend-coverage
- run:
name: copy frontend coverage
command: cp ./frontend/coverage/lcov.info ./backend/reports/coverage/lcov_frontend.info
- run:
name: merge frontend and backend coverage
command: ./backend/node_modules/.bin/lcov-result-merger './backend/reports/coverage/lco*.info' './backend/reports/coverage/lcov_merged.info'
- run:
command: cat ./backend/reports/coverage/lcov_merged.info | ./backend/node_modules/.bin/coveralls
environment:
COVERALLS_SERVICE_NAME: circle-ci
COVERALLS_GIT_BRANCH: ${CIRCLE_BRANCH}
- save_cache:
paths:
- backend/node_modules
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![CircleCI](https://circleci.com/gh/SAP/code-snippet.svg?style=svg)](https://circleci.com/gh/SAP/code-snippet)
[![Coverage Status](https://coveralls.io/repos/github/SAP/code-snippet/badge.svg?branch=master)](https://coveralls.io/github/SAP/code-snippet?branch=master)
![GitHub license](https://img.shields.io/badge/license-Apache_2.0-blue.svg)
[![REUSE status](https://api.reuse.software/badge/github.com/SAP/code-snippet)](https://api.reuse.software/info/github.com/SAP/code-snippet)
[![dependentbot](https://api.dependabot.com/badges/status?host=github&repo=SAP/code-snippet)](https://dependabot.com/)
Expand Down
4 changes: 3 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@
"string-replace-loader": "^2.1.1",
"vsce": "^1.73.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
"webpack-cli": "^3.3.11",
"lcov-result-merger": "3.1.0",
"coveralls": "3.1.0"
}
}
1 change: 1 addition & 0 deletions frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
"!<rootDir>/src/plugins/**"
],
coverageReporters: [
"lcov",
"html",
"text-summary"
],
Expand Down