Skip to content

Commit

Permalink
Makes benchmarks skip in test short mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Stringy committed Sep 4, 2023
1 parent 7b49cc8 commit 816719a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
when: collector_test != "ci-integration-tests"

- set_fact:
run_args: -test.timeout 120m
run_args: -test.timeout 120m -test.short
when: collector_test == "ci-integration-tests"

- block:
Expand Down
6 changes: 6 additions & 0 deletions integration-tests/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ import (
)

func TestBenchmarkBaseline(t *testing.T) {
if testing.Short() {
t.Skip("Not running Benchmarks in short mode")
}
suite.Run(t, new(suites.BenchmarkBaselineTestSuite))
}

func TestBenchmarkCollector(t *testing.T) {
if testing.Short() {
t.Skip("Not running Benchmarks in short mode")
}
suite.Run(t, new(suites.BenchmarkCollectorTestSuite))
}

0 comments on commit 816719a

Please sign in to comment.