Skip to content

Comments

chore: add coverage badges#1023

Merged
yusukebe merged 2 commits intohonojs:mainfrom
BarryThePenguin:chore/coverage-badges
Mar 19, 2025
Merged

chore: add coverage badges#1023
yusukebe merged 2 commits intohonojs:mainfrom
BarryThePenguin:chore/coverage-badges

Conversation

@BarryThePenguin
Copy link
Contributor

@BarryThePenguin BarryThePenguin commented Mar 18, 2025

Adds a coverage badge to each readme. This is also a good opportunity to make sure everything is working correctly 👀

With oidc-auth for example
codecov

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.10%. Comparing base (6c8ba4c) to head (1c47368).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1023   +/-   ##
=======================================
  Coverage   78.10%   78.10%           
=======================================
  Files          74       74           
  Lines        2128     2128           
  Branches      553      553           
=======================================
  Hits         1662     1662           
  Misses        390      390           
  Partials       76       76           
Flag Coverage Δ
ajv-validator 0.79% <ø> (?)
arktype-validator 0.56% <ø> (?)
auth-js 3.19% <ø> (?)
casbin 1.55% <ø> (?)
class-validator 0.89% <ø> (?)
clerk-auth 0.98% <ø> (?)
cloudflare-access 2.91% <ø> (?)
conform-validator 1.17% <ø> (?)
effect-validator 0.42% <ø> (?)
esbuild-transpiler 1.03% <ø> (?)
event-emitter 2.67% <ø> (?)
firebase-auth 2.63% <ø> (?)
graphql-server 4.41% <ø> (?)
hello 0.18% <ø> (?)
medley-router 0.46% <ø> (?)
node-ws 2.44% <ø> (?)
oauth-providers 22.27% <ø> (?)
oidc-auth 10.52% <ø> (ø)
otel 0.93% <ø> (?)
prometheus 1.69% <ø> (?)
react-renderer 1.45% <ø> (?)
sentry 0.79% <ø> (?)
standard-validator 0.61% <ø> (?)
swagger-editor 0.65% <ø> (?)
swagger-ui 1.78% <ø> (?)
trpc-server 0.56% <ø> (?)
tsyringe 0.28% <ø> (?)
typebox-validator 1.45% <ø> (?)
typia-validator 2.02% <ø> (?)
valibot-validator 0.51% <ø> (?)
zod-openapi 5.54% <ø> (?)
zod-validator 0.61% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗑️

@@ -1,5 +1,7 @@
# Ajv validator middleware for Hono

[![codecov](https://codecov.io/github/honojs/middleware/graph/badge.svg?flag=ajv-validator)](https://codecov.io/github/honojs/middleware)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each badge should include a flag and only show the coverage for that flag

Comment on lines +13 to +15
import { type JSONSchemaType } from 'ajv'
import { ajvValidator } from '@hono/ajv-validator'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like prettier and vscode decided to format code blocks on save.. happy to revert this if it's an issue

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's okay!

@@ -1,13 +1,13 @@
name: ci-cabin
name: ci-casbin
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this spelling mistake has existed for a while..

Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +13 to +15
import { type JSONSchemaType } from 'ajv'
import { ajvValidator } from '@hono/ajv-validator'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's okay!

@yusukebe
Copy link
Member

@BarryThePenguin

Good idea! Let's go with this.

@yusukebe yusukebe merged commit 783a082 into honojs:main Mar 19, 2025
33 checks passed
@BarryThePenguin BarryThePenguin deleted the chore/coverage-badges branch March 19, 2025 09:59
TimBarley pushed a commit to TimBarley/honojs-middleware that referenced this pull request Apr 9, 2025
* chore: add coverage badges

* ci(casbin): fix spelling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants