Skip to content
willmartianPublic

About

Specs that run. Written by agents, read by people.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

🥒 Gherkin++

Gherkin without step definitions. Capitalised words are code, and type-checked.

Feature: Signing in

  Scenario: The right password
    Given I Visit "/"
    When I Fill the Field "Email" with "will@example.com"
    And I Fill the Field "Password" with "hunter2"
    And I Click the Button "Sign in"
    Then I should See the Heading "Welcome back"

No waits, conditionals or CSS selectors, so agents can write it and people can review it.

Install

Needs Node.js 22.18+.

npm install --save-dev gpp-lang @gpp-lang/playwright @playwright/test
npx playwright install chromium
// gpp.config.ts
import { defineConfig } from 'gpp-lang'
import { playwright } from '@gpp-lang/playwright/config'

export default defineConfig({
  backends: [playwright({ files: ['features/**/*.gpp'] })],
})
// playwright.config.ts
import { defineConfig } from '@playwright/test'
import { defineGppConfig } from '@gpp-lang/playwright'
import gpp from './gpp.config.ts'

export default defineConfig({
  ...defineGppConfig(gpp),
  use: { baseURL: 'http://localhost:3000' },
})

Gitignore .gpp-tests/, then npx playwright test.

Docs

Contributing

About

Specs that run. Written by agents, read by people.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages