Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```