Skip to content

feat: add go-no-driver-api pattern#31

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

feat: add go-no-driver-api pattern#31
sirockin merged 4 commits into
mainfrom
feature/go-no-driver-api

Conversation

@sirockin

@sirockin sirockin commented Oct 3, 2025

Copy link
Copy Markdown
Owner

Summary

Adds a new BDD acceptance test pattern that demonstrates HTTP API testing without a driver abstraction layer, addressing issue #30.

This pattern is identical to go-no-driver-ui but tests the backend HTTP API instead of the UI.

Key Features

  • ✅ Inlines HTTP client code directly into step functions
  • ✅ Uses standard net/http.Client for API calls
  • ✅ Tests backend REST API endpoints
  • ✅ No driver abstraction layer for maximum simplicity
  • ✅ Fast execution without browser overhead
  • ✅ Makefile target test-backend instead of test-frontend

Changes Made

  1. Created acceptance/go-no-driver-api directory with all test files
  2. Updated testContext to use HTTP client instead of Playwright
  3. Replaced all UI automation code with HTTP API calls
  4. Updated Makefile with test-backend target
  5. Added comprehensive pattern documentation in README
  6. Updated root README to reference new pattern
  7. All tests passing ✅

Test Plan

  • All tests pass: make test-backend
  • Tests verify backend API functionality
  • Documentation is clear and accurate
  • Pattern follows same structure as other patterns

Closes #30

🤖 Generated with Claude Code

sirockin and others added 4 commits October 3, 2025 15:17
Add a new BDD acceptance test pattern that demonstrates HTTP API testing
without a driver abstraction layer. This pattern is identical to
go-no-driver-ui but tests the backend HTTP API instead of the UI.

Key features:
- Inlines HTTP client code directly into step functions
- Uses standard net/http.Client for API calls
- Tests backend REST API endpoints
- No driver abstraction layer for maximum simplicity
- Fast execution without browser overhead

Changes:
- Created acceptance/go-no-driver-api directory with all test files
- Updated testContext to use HTTP client instead of Playwright
- Replaced all UI automation code with HTTP API calls
- Updated Makefile with test-backend target
- Added pattern documentation in README
- Updated root README to reference new pattern

Closes #30

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

Co-Authored-By: Claude <noreply@anthropic.com>
@sirockin sirockin merged commit 4c4e26d 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.

Add go-no-driver-api pattern

1 participant