Skip to content
This repository was archived by the owner on Sep 1, 2021. It is now read-only.
Open
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
56 changes: 20 additions & 36 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,24 @@ codecov:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"

status:
website:
flags: website
target: 90%
threshold: null
paths:
- website/
raven:
flags: raven
target: 90%
threshold: null
paths:
- raven/
core:
flags: core
target: 90%
threshold: null
paths:
- unitTests/
- mr_modules/

patch: yes
changes: no
project: off
patch:
website:
flags:
- website
target: 90%
threshold: 0%
raven:
flags:
- raven
target: 90%
threshold: 0%
core:
flags:
- core
target: 90%
threshold: 0%

flags:
website:
Expand All @@ -40,15 +31,8 @@ flags:
core:
paths:
- mr_modules/
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

# Github PR Codecov comment
comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: no
layout: "files, flags"
behavior: "new"
7 changes: 7 additions & 0 deletions mr_modules/cart/cart.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
exports.addItems = addItems;
exports.removeItems = removeItems;

function addItems(cartObj, newItems) {
return Object.assign(cartObj, newItems);
}


function removeItems(cartObj, key) {
delete cartObj[key];
return cartObj;
}
5 changes: 5 additions & 0 deletions mr_modules/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
exports.sum = sum;
exports.subtract = subtract;
exports.multiply = multiply;

function sum(a, b) {
return a + b;
Expand All @@ -8,3 +9,7 @@ function sum(a, b) {
function subtract(a, b) {
return a - b;
}

function multiply(a, b) {
return a - b;
}
Loading