Skip to content

Commit

Permalink
Merge pull request #53 from quangdangfit/standard
Browse files Browse the repository at this point in the history
update readme and test template
  • Loading branch information
quangdangfit authored Sep 8, 2023
2 parents a087bd3 + 0397f6a commit 01c1ad7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ $ go test

### Test with Coverage
```shell script
go test -timeout 9000s -a -v -coverpkg=./... ./test
go test -timeout 9000s -a -v -coverprofile=coverage.out -coverpkg=./... ./...
```

**or**

```shell script
make unittest
```

Project information and existing API
Expand Down Expand Up @@ -80,3 +86,9 @@ Project information and existing API
- Jwt-Go
- Gin-gonic
- Redis

### What's next?
- gRPC functions for products and orders
- Push message to notify place order successfully
- Put database object into interface
- Unittest for repositories (mock database)
3 changes: 1 addition & 2 deletions codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ ignore:
- "mocks/"
- "pkg/"
- "vendor/"
- "config/"
- "main.go"
- "cmd/"
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sonar.organization=quangdangfit
sonar.projectKey=quangdangfit_goshop
sonar.sources=.
sonar.exclusions=**/*_test.go,vendor/,mocks/
sonar.exclusions=**/*_test.go,vendor/,**/mocks/
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.go.coverage.reportPaths=./coverage.out
Expand Down

0 comments on commit 01c1ad7

Please sign in to comment.