Skip to content

Commit bab47b9

Browse files
authored
Merge pull request #20 from nao1215/feat/coverage-tree
Introduce coverage tree
2 parents 962b805 + 1f3c9d7 commit bab47b9

File tree

6 files changed

+306
-4
lines changed

6 files changed

+306
-4
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
# Go workspace file
2121
go.work
22-
cover.*
22+
/cover.*
2323
data
2424
localstack
2525
/s3hub

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
## [](https://github.com/nao1215/rainbow/compare/77bdf974281a...) (2024-01-01)
1+
## [](https://github.com/nao1215/rainbow/compare/77bdf974281a...) (2024-01-03)
22

3+
* Add s3hub cp sub command [#16](https://github.com/nao1215/rainbow/pull/16) ([nao1215](https://github.com/nao1215))
4+
* Add feature that list up S3 Objects [#15](https://github.com/nao1215/rainbow/pull/15) ([nao1215](https://github.com/nao1215))
5+
* Add specification document for cfn command [#14](https://github.com/nao1215/rainbow/pull/14) ([nao1215](https://github.com/nao1215))
36
* Introduce spare command [#13](https://github.com/nao1215/rainbow/pull/13) ([nao1215](https://github.com/nao1215))
47
* build(deps): bump golang.org/x/sync from 0.1.0 to 0.5.0 [#12](https://github.com/nao1215/rainbow/pull/12) ([dependabot[bot]](https://github.com/apps/dependabot))
58
* Update document for s3hub with gif image [#11](https://github.com/nao1215/rainbow/pull/11) ([nao1215](https://github.com/nao1215))

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: build test clean changelog tools help docker generate gif
1+
.PHONY: build test clean changelog tools help docker generate gif coverage-tree
22

33
S3HUB = s3hub
44
SPARE = spare
@@ -26,6 +26,9 @@ test: ## Start unit test
2626
env GOOS=$(GOOS) $(GO_TEST) -cover $(GO_PKGROOT) -coverprofile=cover.out
2727
$(GO_TOOL) cover -html=cover.out -o cover.html
2828

29+
coverage-tree: test ## Generate coverage tree
30+
go-cover-treemap -coverprofile cover.out > doc/img/cover.svg
31+
2932
changelog: ## Generate changelog
3033
ghch --format markdown > CHANGELOG.md
3134

@@ -34,6 +37,7 @@ tools: ## Install dependency tools
3437
$(GO_INSTALL) github.com/nao1215/hottest@latest
3538
$(GO_INSTALL) github.com/google/wire/cmd/wire@latest
3639
$(GO_INSTALL) github.com/charmbracelet/vhs@latest
40+
$(GO_INSTALL) github.com/nikolaydubina/go-cover-treemap@latest
3741

3842
generate: ## Generate code from templates
3943
$(GO) generate ./...

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ This project incurs costs on AWS, and financial support from you would make it e
6363
GitHub Star is motivation for me. If you like this project, please star it.
6464
[![Star History Chart](https://api.star-history.com/svg?repos=nao1215/rainbow&type=Date)](https://star-history.com/#nao1215/rainbow&Date)
6565

66+
## Unit Test Coverage Treemap
67+
![Coverage Treemap](./doc/img/cover.svg)
68+
6669
## Special Thanks
6770
![localstack](./doc/img/localstack-readme-banner.svg)
6871
[LocalStack](https://www.localstack.cloud/) is a service that mocks AWS, covering a wide range of AWS services. It is not easy to set up an AWS infrastructure for personal development, but LocalStack has lowered the barrier for server application development.

doc/common/developers.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,16 @@ curl -s "http://127.0.0.1:4566/health" | jq .
9090
},
9191
"version": "2.1.1.dev"
9292
}
93-
```
93+
```
94+
95+
### Generate CHANGELOG
96+
```shell
97+
make changelog
98+
```
99+
100+
### Generate coverage map
101+
```shell
102+
make coverage-tree
103+
```
104+
105+
![coverage-image](../img/cover.svg)

doc/img/cover.svg

+280
Loading

0 commit comments

Comments
 (0)