Skip to content

Commit 5fcb8e6

Browse files
committed
Add e2e build tag to exclude E2E tests from CI
- Add //go:build e2e to all E2E test files - Update testrunner to use -tags=e2e flag - E2E tests now only run via 'chu test e2e' command - CI no longer fails trying to run E2E tests without chu binary
1 parent 880e729 commit 5fcb8e6

File tree

8 files changed

+4158
-1
lines changed

8 files changed

+4158
-1
lines changed

coverage.txt

Lines changed: 4145 additions & 0 deletions
Large diffs are not rendered by default.

internal/testrunner/progress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func RunTestsWithProgress(category, backend, profile string, timeout int, notify
205205
return fmt.Errorf("test directory not found: %s\n\nAvailable categories: run, chat, tdd, integration", testDir)
206206
}
207207

208-
args := []string{"test", "-v", "-timeout", fmt.Sprintf("%ds", timeout), fmt.Sprintf("./%s/...", testDir)}
208+
args := []string{"test", "-tags=e2e", "-v", "-timeout", fmt.Sprintf("%ds", timeout), fmt.Sprintf("./%s/...", testDir)}
209209

210210
os.Setenv("E2E_BACKEND", backend)
211211
os.Setenv("E2E_PROFILE", profile)

tests/e2e/chat/chat_multi_turn_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build e2e
2+
13
package chat
24

35
import (

tests/e2e/planning/research_plan_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build e2e
2+
13
package planning
24

35
import (

tests/e2e/run/chu_chat_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build e2e
2+
13
package run
24

35
import (

tests/e2e/run/chu_do_symphony_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build e2e
2+
13
package run_test
24

35
import (

tests/e2e/run/chu_do_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build e2e
2+
13
package run_test
24

35
import (

tests/e2e/run/single_shot_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build e2e
2+
13
package run_test
24

35
import (

0 commit comments

Comments
 (0)