Skip to content

Commit

Permalink
nyc jest --coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielDushime committed May 27, 2024
1 parent 6dade4c commit 206fb70
Show file tree
Hide file tree
Showing 4 changed files with 590 additions and 23 deletions.
21 changes: 16 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
version: 2.1


orbs:
node: circleci/[email protected]
coveralls: coveralls/[email protected]

executors:
node-executor:
Expand All @@ -13,12 +11,25 @@ executors:
jobs:
build:
executor: node-executor
environment:
CC_TEST_REPORTER_ID: b996f145a438f80141cfcc86bb35a2c212a2a24c394abee18da6add05eaaee7e
steps:
- checkout
- run: npm install
- run:
name: Run Tests
command: npm test
name: Initialize Code Climate test reporter
command: cc-test-reporter before-build
- run:
name: Run Tests with Coverage
command: npm run test:coverage
- run:
name: Format Coverage Report
command: nyc report --reporter=text-lcov > coverage.lcov
- run:
name: Upload Coverage Report to Code Climate
command: |
cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.json coverage.lcov
cc-test-reporter upload-coverage
deploy:
executor: node-executor
Expand All @@ -35,4 +46,4 @@ workflows:
- build
- deploy:
requires:
- build
- build
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@

[![Test Coverage](https://api.codeclimate.com/v1/badges/b8b4783a32fb76cb4953/test_coverage)](https://codeclimate.com/github/atlp-rwanda/e-commerce-furebo-32-bn/test_coverage)

[![Maintainability](https://api.codeclimate.com/v1/badges/b8b4783a32fb76cb4953/maintainability)](https://codeclimate.com/github/atlp-rwanda/e-commerce-furebo-32-bn/maintainability)
[![HoundCI](https://img.shields.io/badge/style-yellow?style=flat&logo=houndci&label=HoundCI)](https://houndci.com)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/atlp-rwanda/e-commerce-furebo-32-bn/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/atlp-rwanda/e-commerce-furebo-32-bn/tree/main)
<div style="display: flex; justify-content: center;" align="center">
<img src="https://codecov.io/gh/atlp/e-commerce-furebo-32-bn/branch/main/graph/badge.svg?token=25aecf2d-ee44-4ac0-9f91-9f9c38ed5412" alt="Codecov" width="50%">
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/atlp/e-commerce-furebo-32-bn/job.yaml" width="50%">
</div>
[![Maintainability](https://api.codeclimate.com/v1/badges/b8b4783a32fb76cb4953/maintainability)](https://codeclimate.com/github/atlp-rwanda/e-commerce-furebo-32-bn/maintainability)
Loading

0 comments on commit 206fb70

Please sign in to comment.