Skip to content

Commit

Permalink
test: change coverage format to lcov
Browse files Browse the repository at this point in the history
  • Loading branch information
fasenderos committed Sep 18, 2023
1 parent 7bdddb0 commit 23b929d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 42 deletions.
21 changes: 0 additions & 21 deletions .codecov.yml

This file was deleted.

18 changes: 1 addition & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,5 @@ jobs:
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/api-gateway/coverage/clover.xml
files: ./packages/api-gateway/coverage/lcov.info
fail_ci_if_error: true
- name: Add PR coverage report
if: ${{ always() && github.event_name == 'pull_request' && matrix.node-version == 20 }}
uses: MishaKav/jest-coverage-comment@main
with:
coverage-summary-path: ./packages/api-gateway/coverage/coverage-summary.json
title: Coverage Report
summary-title: Summary
badge-title: Coverage
hide-comment: false
create-new-comment: false
hide-summary: false
# junitxml-title: My JUnit Title
# junitxml-path: ./app/coverage/clover.xml
report-only-changed-files: true
coverage-title: File Coverage
coverage-path: ./packages/api-gateway/coverage/coverage.txt
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="center">
<a href="https://github.com/fasenderos/bitify/blob/main/LICENSE.md" target="_blank"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="Package License"></a>
<a href="https://codecov.io/github/fasenderos/bitify" target="_blank"><img src="https://img.shields.io/codecov/c/github/fasenderos/bitify" alt="Codecov"></a>
<a href="https://github.com/fasenderos/bitify"><img src="https://badgen.net/badge/icon/typescript?icon=typescript&label" alt="Built with TypeScript"></a>
<a href="https://codecov.io/github/fasenderos/bitify" target="_blank"><img src="https://codecov.io/github/fasenderos/bitify/graph/badge.svg?token=FN6997JFRA" alt="Codecov"></a>
<a href="https://github.com/fasenderos/bitify"><img src="https://badgen.net/badge/Built%20With/TypeScript/blue" alt="Built with TypeScript"></a>
</p>

> <b>WARNING</b>: This software is not ready yet, please don't use in production. There are a [lot of things to do](#to-do) and is under active development. APIs and table schemas are subject to change without notice. Technical support is unavailable at this time.
Expand Down
21 changes: 21 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
codecov:
require_ci_to_pass: true
coverage:
precision: 2
round: down
range: "60...80"
status:
project: true
patch: true
changes: false
parsers:
gcov:
branch_detection:
conditional: true
loop: true
method: false
macro: false
comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: false
4 changes: 2 additions & 2 deletions packages/api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"lint": "eslint",
"lint:fix": "eslint --fix",
"pretest": "node ./test/before-all-tests.js",
"test": "tap --ts",
"test:ci": "tap --ts --coverage && tap --coverage-report=clover --coverage-report=json-summary && tap --coverage-report=text --coverage-report=text-summary 2>&1 | tee coverage/coverage.txt",
"test": "pnpm pretest && tap --ts",
"test:ci": "pnpm pretest && tap --ts --coverage && tap --coverage-report=lcov",
"test:cov": "pnpm pretest && tap --ts --coverage",
"test:dev": "pnpm pretest && tap --ts --watch --coverage"
},
Expand Down

0 comments on commit 23b929d

Please sign in to comment.