Skip to content
Evandro Pomatti edited this page Aug 20, 2023 · 4 revisions

Welcome!

Development guide

Running the application:

go run main.go

Testing locally:

curl localhost:8080/cpu?x=30

Building and running the Docker image locally:

docker build -t stressbox .
docker run -p 8080:8080 --rm stressbox

Push a tag to trigger a Docker build and publish:

git tag v*.*.*
git push --tags

Testing

go test ./...

To generate coverate:

go test -v -coverprofile cover.out ./...
go tool cover -html cover.out -o cover.html
Clone this wiki locally