Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edmartt/go-unit-test-excercise
A simple go project for learning about unit test in simple way and with cases table
https://github.com/edmartt/go-unit-test-excercise
go golang testing testing-practices unit-testing
Last synced: 22 days ago
JSON representation
A simple go project for learning about unit test in simple way and with cases table
- Host: GitHub
- URL: https://github.com/edmartt/go-unit-test-excercise
- Owner: Edmartt
- License: gpl-2.0
- Created: 2022-05-28T05:02:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-28T17:28:18.000Z (over 2 years ago)
- Last Synced: 2024-10-02T09:14:18.857Z (about 1 month ago)
- Topics: go, golang, testing, testing-practices, unit-testing
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UNIT TEST WITH GO
A simple project with an aritmethic operation (sum) for showing the power of unit testing in Go.
### Running project
```
go run main.go
```### Running tests with coverage
```
go test -v --coverprofile=coverage.out ./... ./...
```### Watching the coverage in browser
```
go tool cover -html=coverage.out
```