Skip to content

Commit

Permalink
chore(Make): add benchmark-analyze-dev subcmd
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed Feb 19, 2024
1 parent d14fad2 commit 0151155
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.PHONY: help test ci
.DEFAULT_GOAL := help

BENCH_TARGET := .
Expand Down Expand Up @@ -37,6 +36,9 @@ bench-initialize: bench
bench-analyze: BENCH_TARGET := ^BenchmarkAnalyze
bench-analyze: bench

bench-analyze-dev: BENCH_TARGET := ^BenchmarkAnalyze.+WithDevelopment$
bench-analyze-dev: bench

cover: FILE := /tmp/teler-coverage.out # Define coverage file
cover: ## Runs the tests and check & view the test coverage
go test -race -coverprofile=$(FILE) -covermode=atomic $(TARGET)
Expand All @@ -52,4 +54,7 @@ license-verify: ARGS := --verify
license-verify: licensing

pprof: ARGS := -cpuprofile=cpu.out -memprofile=mem.out
pprof: bench
pprof: bench

.PHONY: help semgrep lint vet report test test-all ci bench bench-initialize
.PHONY: bench-analyze cover cover-all licensing license-verify pprof

0 comments on commit 0151155

Please sign in to comment.