Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: Run unit tests with coverage
run: |
go test -v -parallel=8 -timeout=3m -tags '!integration' -run='^Test' -coverprofile=coverage.out -json ./... | tee test-result-unit.json
go test -v -parallel=8 -timeout=3m -run='^Test' -coverprofile=coverage.out -json ./... | tee test-result-unit.json
go tool cover -html=coverage.out -o coverage.html

# Coverage reports for recent builds only - 7 days is sufficient for debugging recent changes
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ build-darwin:
build-windows:
GOOS=windows GOARCH=amd64 go build $(LDFLAGS) -o $(BINARY_NAME)-windows-amd64.exe ./cmd/gh-aw

# Test the code (runs both unit and integration tests)
# Test the code (runs both unlabelled unit tests and integration tests)
.PHONY: test
test:
go test -v -timeout=3m -tags 'integration' -run='^Test' ./...

# Test unit tests only (excludes integration tests)
# Test unit tests only (excludes labelled integration tests)
.PHONY: test-unit
test-unit:
go test -v -timeout=3m -tags '!integration' -run='^Test' ./...
go test -v -timeout=3m -run='^Test' ./...

# Update golden test files
.PHONY: update-golden
Expand Down
2 changes: 0 additions & 2 deletions pkg/cli/copilot_setup_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package cli

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/cli/flags_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package cli

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/cli/init_command_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package cli

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/cli/mcp_config_file_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package cli

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/cli/mcp_secrets_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package cli

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/cli/test_main_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package cli

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/workflow/firewall_disable_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package workflow

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/workflow/github_token_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package workflow

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/workflow/github_token_validation_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package workflow

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/workflow/jobs_secrets_validation_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package workflow

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/workflow/secrets_validation_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package workflow

import (
Expand Down
Loading