diff --git a/.gitignore b/.gitignore index c178d39..c55dc2c 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,6 @@ /files/* /mail-downloader /mail_downloader -/config/* \ No newline at end of file +/config/* +coverage.txt +coverage.out \ No newline at end of file diff --git a/makefile b/makefile index 17687d8..960c2b0 100644 --- a/makefile +++ b/makefile @@ -1,2 +1,9 @@ linter: - golangci-lint run \ No newline at end of file + golangci-lint run + +test-coverage: + go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... + +test: + make linter + make test-coverage