This project is based on allure-docker-service
Ported and rewritten in Go, using GoFiber with some custom modification.
- Send allure result files then generate the report
- Save reports based on project
- Serve allure report
For more information, visit allure-docker-service
Live Demo (Using my home server, it might be down temporarily)
-
Set max multipart to set max files that can be uploaded
export GODEBUG=multipartmaxheaders=<values>,multipartmaxparts=<value>
-
Java must be installed and
JAVA_HOME
is already set -
download and install Allure based on current OS from here then modify
LOCAL_ALLURE_EXECUTABLE
in .env to point to Allure executable path-
run
which allure
to get current allure path if installing using homebrew(MacOS)/scoop(Windows) -
for Linux, it is recommended to download the zip then extract it to current workspace then set
LOCAL_ALLURE_EXECUTABLE
, example commandexport ALLURE_VERSION=<version> wget https://github.com/allure-framework/allure2/releases/download/${ALLURE_VERSION}/allure-${ALLURE_VERSION}.zip unzip -q allure-<version>.zip chmod +x allure-${ALLURE_VERSION}/bin/allure
-
Verify allure can be executed
allure-${ALLURE_VERSION}/bin/allure --help
-
set
LOCAL_ALLURE_EXECUTABLE
in env to allure executable path
-
-
Download packages
go mod download
-
Download
swag
cmdgo get github.com/swaggo/swag/cmd/swag
-
Run server and generate swagger using command
swag init && go run .
-
Run command below if error
"swag: command not found"
occuredexport PATH=$(go env GOPATH)/bin:$PATH
-
Access swager in browser by opening this URL
docker compose build
docker compose up -d