|
|
@@ -21,11 +21,17 @@ test-collector-source:
|
|
|
{{commonenv}} cd ./modules/collector-source && go test ./... -coverprofile=coverage.out
|
|
|
{{commonenv}} cd ./modules/collector-source && go vet ./...
|
|
|
|
|
|
-# Run unit tests
|
|
|
-test: test-core test-prometheus-source test-collector-source
|
|
|
+# run the opencost unit tests
|
|
|
+test-opencost:
|
|
|
{{commonenv}} go test ./... -coverprofile=coverage.out
|
|
|
{{commonenv}} go vet ./...
|
|
|
|
|
|
+# Run unit tests, merge coverage reports, remove old reports
|
|
|
+test: test-core test-prometheus-source test-collector-source test-opencost
|
|
|
+ find . -name "coverage.out" -print0 | xargs -0 cat > coverage.new
|
|
|
+ find . -name "coverage.out" -delete
|
|
|
+ mv coverage.new coverage.out
|
|
|
+
|
|
|
# Run unit tests and integration tests
|
|
|
test-integration:
|
|
|
{{commonenv}} INTEGRATION=true go test ./... -coverprofile=coverage.out
|