Skip to content

Commit 8d48629

Browse files
committed
test: Add more regression tests
Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
1 parent 2777dbf commit 8d48629

File tree

6 files changed

+1734
-5
lines changed

6 files changed

+1734
-5
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ test-unit: package gotestfmt
207207
@echo "Running unit tests..."
208208
set -euo pipefail
209209
go test -json -v -shuffle=on -timeout=5m -count=1 ./tool/... 2>&1 | tee ./gotest-unit.log | gotestfmt
210+
@echo "Running pkg unit tests (semconv only - hook tests require full instrumentation)..."
211+
set -euo pipefail
212+
cd pkg/instrumentation/nethttp/semconv && go test -v -shuffle=on -timeout=5m -count=1 ./... 2>&1 | tee ../../../gotest-unit-pkg.log
210213

211214
.ONESHELL:
212215
test-unit/update-golden: ## Run unit tests and update golden files
@@ -221,6 +224,9 @@ test-unit/coverage: package gotestfmt
221224
@echo "Running unit tests with coverage report..."
222225
set -euo pipefail
223226
go test -json -v -shuffle=on -timeout=5m -count=1 ./tool/... -coverprofile=coverage.txt -covermode=atomic 2>&1 | tee ./gotest-unit.log | gotestfmt
227+
@echo "Running pkg unit tests with coverage report (semconv only - hook tests require full instrumentation)..."
228+
set -euo pipefail
229+
cd pkg/instrumentation/nethttp/semconv && go test -v -shuffle=on -timeout=5m -count=1 ./... -coverprofile=coverage.txt -covermode=atomic 2>&1 | tee ../../../gotest-unit-pkg.log
224230

225231
.ONESHELL:
226232
test-integration: ## Run integration tests

0 commit comments

Comments
 (0)