Skip to content

Commit c049b48

Browse files
committed
Add coverage badge
1 parent 22454fe commit c049b48

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![JSR](https://jsr.io/badges/@iuioiua/redis)](https://jsr.io/@iuioiua/redis)
44
[![CI](https://github.com/iuioiua/redis/actions/workflows/ci.yml/badge.svg)](https://github.com/iuioiua/redis/actions/workflows/ci.yml)
5+
[![Test coverage](./coverage-badge.svg)](https://redis-coverage.iuioiua.deno.net/)
56

67
Fast, lightweight [Redis](https://redis.io/) client built upon the
78
[Web Streams API](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API).
@@ -39,7 +40,6 @@ assertEquals(reply2, "world");
3940
- [Demo](https://redis-demo.iuioiua.deno.net/)
4041
- [Documentation](https://jsr.io/@iuioiua/redis/doc)
4142
- [Contributing guidelines](./CONTRIBUTING.md)
42-
- [Test coverage](https://redis-coverage.iuioiua.deno.net/)
4343

4444
## Known issues
4545

coverage/html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ <h1>All files</h1>
571571
<div class='footer quiet pad2 space-top1 center small'>
572572
Code coverage generated by
573573
<a href='https://deno.com/' target='_blank'>Deno v2.8.1</a>
574-
at Wed, 3 Jun 2026 22:54:01 +0000
574+
at Wed, 3 Jun 2026 23:07:51 +0000
575575
</div>
576576
</body>
577577
</html>

coverage/html/mod.ts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,7 @@ <h1><a href='index.html'>All files</a> / mod.ts</h1>
30243024
<div class='footer quiet pad2 space-top1 center small'>
30253025
Code coverage generated by
30263026
<a href='https://deno.com/' target='_blank'>Deno v2.8.1</a>
3027-
at Wed, 3 Jun 2026 22:54:01 +0000
3027+
at Wed, 3 Jun 2026 23:07:51 +0000
30283028
</div>
30293029
</body>
30303030
</html>

deno.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"redis:start": "sh -c 'if [ \"$GITHUB_ACTIONS\" != \"true\" ]; then redis-server --save \"\" --appendonly no --daemonize yes; fi'",
1010
"redis:stop": "sh -c 'if [ \"$GITHUB_ACTIONS\" != \"true\" ]; then redis-cli SHUTDOWN; fi'",
1111
"test": {
12-
"command": "deno test --allow-net --trace-leaks --coverage --doc --parallel --clean ; deno task redis:stop",
12+
"command": "deno test --allow-net --trace-leaks --coverage --doc --parallel --clean; deno task redis:stop; deno x lcov-badge-generator -o coverage-badge.svg coverage/lcov.info",
1313
"dependencies": ["redis:start"]
1414
},
1515
"bench": {
@@ -31,9 +31,7 @@
3131
"noImplicitOverride": true,
3232
"noUncheckedIndexedAccess": true
3333
},
34-
"exclude": [
35-
"coverage"
36-
],
34+
"exclude": ["coverage", "coverage-badge.svg"],
3735
"lint": {
3836
"rules": {
3937
"tags": ["jsr"]

0 commit comments

Comments
 (0)