Categorygithub.com/priscilaMayume/automation_appWeb_test_golang
module
0.0.0-20240709232734-4c8c1234796f
Repository: https://github.com/priscilamayume/automation_appweb_test_golang.git
Documentation: pkg.go.dev

# README

automation_appWeb_test_golang



This project aims to contain an API-REST, using the Go programming language (Golang) and automating test scenarios using GO + Testing* . It uses the Visual Studio Code (VSCode) development environment and Go in version go1.22.3 for the Darwin/amd64 platform.






Example - Unit test reports:
go test -coverprofile=coverage.out
Generates a coverage.out file with the coverage data.

go tool cover -func=coverage.out
Displays a coverage summary in the terminal.

go tool cover -html=coverage.out
Opens a coverage report in HTML format.

Tag for running unit tests and integration tests
go test -v -tags=integration ./…




The database must be created locally
docker-compose up -d

The service must be carried out
go run ./cmd/api




CURL - Successful token generation
curl http://localhost:8090/auth -X POST -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"secret"}'

# Packages

No description provided by the author
No description provided by the author