Skip to main content

@esimplicity/stack-tests Documentation

A comprehensive BDD testing framework built on Playwright, providing reusable fixtures, adapters, and step definitions for API, UI, TUI, and hybrid testing.

Quick Navigation

Getting Started

Core Concepts

Guides

Reference

API Reference

Step Reference

Contributing

Examples


Architecture Overview

Key Features

FeatureDescription
Ports & AdaptersClean separation of interfaces and implementations
Multi-Layer TestingAPI, Browser UI, Terminal UI in one framework
BDD SupportCucumber/Gherkin syntax via playwright-bdd
Auto CleanupResources cleaned up automatically after tests
Variable Interpolation{varName} syntax in step parameters
Tag FilteringRun specific test types with @api, @ui, @tui tags

Quick Example

@api
Feature: User Management API

Scenario: Create and verify user
Given I am authenticated as an admin via API
When I POST "/admin/users" with JSON body:
"""
{ "email": "test@example.com", "name": "Test User" }
"""
Then the response status should be 201
And I store the value at "id" as "userId"

When I GET "/admin/users/{userId}"
Then the response status should be 200
And the value at "email" should equal "test@example.com"

License

See LICENSE in the root of the repository.