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

https://github.com/bujosa/emiw

This is a simple project in go for testing a simple functions.
https://github.com/bujosa/emiw

ci-cd golang testify testing

Last synced: 10 months ago
JSON representation

This is a simple project in go for testing a simple functions.

Awesome Lists containing this project

README

          

# Emiw
This is a simple project in go for testing a simple functions.

In this project we can find unit testing. Also CI/CD with github actions for testing the project.

We are using the following tools:

- Go standard library
- Testify for unit testing [See more](https://github.com/stretchr/testify)

## How to use

### Install the project
```bash
git clone https://github.com/bujosa/emiw
cd emiw
```

### Run the project
```bash
$ go run main.go
```

### Run the tests
```bash
$ go test -v
```

### Run the tests with coverage
```bash
$ go test -coverprofile=coverage ./...
```

### Run the tests with coverage and html
```bash
$ go test -coverprofile=coverage ./...
$ go tool cover -html=coverage
```