Skip to content

feat: add go-no-driver-ui pattern#29

Merged
sirockin merged 3 commits into
mainfrom
feature/go-no-driver-ui
Oct 3, 2025
Merged

feat: add go-no-driver-ui pattern#29
sirockin merged 3 commits into
mainfrom
feature/go-no-driver-ui

Conversation

@sirockin

@sirockin sirockin commented Oct 3, 2025

Copy link
Copy Markdown
Owner

Summary

  • Add new acceptance test pattern go-no-driver-ui
  • Demonstrates pure Go tests with UI automation code directly inlined into step functions
  • Eliminates driver abstraction layer for maximum simplicity
  • Based on go-test-wrapper but simplified to remove wrapper function and driver interface
  • Frontend testing only (no domain or HTTP layers)

Key Features

  • No driver interface or abstraction
  • UI automation code (Playwright) inlined directly into step functions
  • Tests call setupTest(t) directly without wrapper function
  • testContext contains Playwright browser/context/page objects directly
  • Only frontend testing (no multi-layer support)

Files Added

  • acceptance/go-no-driver-ui/ - new pattern directory
  • Feature test files, steps, and setup
  • README explaining pattern and tradeoffs
  • Makefile with test-frontend target only
  • Updated root README to list new pattern

Test Results

All tests passing ✅

Closes #28

🤖 Generated with Claude Code

sirockin and others added 3 commits October 3, 2025 14:25
Add new acceptance test pattern demonstrating pure Go tests with UI automation code directly inlined into step functions. This pattern eliminates the driver abstraction layer for maximum simplicity.

Key features:
- No driver interface or abstraction
- UI automation code (Playwright) inlined directly into step functions
- Frontend testing only (no domain or HTTP layers)
- Based on go-test-wrapper but simplified

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Move testContext struct and newTestContext function from steps_test.go to setup_test.go for better code organization.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@sirockin sirockin merged commit f5c0dbd into main Oct 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Pattern: Pure go with no driver

1 participant