mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-11 00:22:32 -06:00
Add the test-with-coverage makefile target. (#2017)
Signed-off-by: Ioannis Polyzos <git@ipolyzos.com> Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> Co-authored-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com>
This commit is contained in:
parent
ffeb707b44
commit
4b0a3966cd
10
Makefile
10
Makefile
@ -5,6 +5,16 @@ export PATH := $(abspath bin/):${PATH}
|
||||
# Dependency versions
|
||||
LICENSEI_VERSION = 0.9.0
|
||||
|
||||
# run Go tests and generate a coverage report
|
||||
#
|
||||
# NOTE:
|
||||
# The coverage counters are to be updated atomically,
|
||||
# which is useful for tests that run in parallel.
|
||||
.PHONY: test-with-coverage
|
||||
test-with-coverage:
|
||||
go test -coverprofile=coverage.out -covermode=atomic ./...
|
||||
go tool cover -html=coverage.out -o coverage.html
|
||||
|
||||
# run the unit tests across all packages in the tofu project
|
||||
.PHONY: test
|
||||
test:
|
||||
|
Loading…
Reference in New Issue
Block a user