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

https://github.com/nikita-filonov/sample_go_grpc_testing


https://github.com/nikita-filonov/sample_go_grpc_testing

allure allure-report api go golang grpc grpc-go test-automation testing

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# Go GRPC testing

Sample of GRPC tests written on go

[Demo allure report](https://nikita-filonov.github.io/sample_go_grpc_testing/)

## Setup project

You have to install [go](https://go.dev/doc/install)

Clone the project and install go packages

```shell
git clone https://github.com/Nikita-Filonov/sample_go_grpc_testing.git`
cd ./sample_go_grpc_testing
go mod download
```

## Run tests

```shell
make test
```

If you want to run tests without make file, then make sure env variable are set

```shell
export ENV=local
export ALLURE_RESULTS_PATH=.

go test ./tests -v -timeout 2m
```

Generate allure report

```shell
cd tests
allure generate
```

Serve allure report

```shell
cd tests
allure serve
```