Skip to content

Split SimpleBehav into a polyglot DSL, Playwright, and LivingDoc. - #1

Merged
HuiSou merged 5 commits into
mainfrom
polyglot-dsl
Nov 11, 2026
Merged

HuiSou merged 5 commits into
mainfrom
polyglot-dsl

Conversation

@HuiSou

@HuiSou HuiSou commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Kotlin and TypeScript share the scenario chain and artifact format with .NET, and each language keeps its own build root.

Kotlin and TypeScript share the scenario chain and artifact format with .NET, and each language keeps its own build root.

Kotlin and Java both target JVM 17, so the Kotlin job compiles on CI. Kotlin and TypeScript write the same suite report page (index.html) beside bundle.json and cucumber.json. CI runs the Playwright scenarios for both.

simplebehav-gen --livingdoc reads .cs, .kt, and .ts test files. The index is one screen: click a scenario and its Given/When/Then spec and Playwright trace appear together. Each feature page is the same screen for that file.

Walkthrough, hosted in this pull request so it plays on GitHub:

https://github.com/agoda-com/simplebehav-net/blob/polyglot-dsl/docs/demos/livingdoc-click-spec-and-trace.mp4

Place order spec and trace

Disabled submit spec and trace

Open in Web Open in Cursor 

Hui Supat and others added 4 commits November 6, 2026 14:05
Kotlin and TypeScript share the scenario chain and artifact format with .NET, and each language keeps its own build root.

Co-authored-by: Cursor <cursoragent@cursor.com>
Pin Kotlin and Java to JVM 17 so CI can compile, write the suite index.html from the Kotlin and TypeScript runners, and run their browser scenarios in CI.

Co-authored-by: Supat L <HuiSou@users.noreply.github.com>
simplebehav-gen now builds the same feature pages from JUnit and node:test chains as it does from C#.

Co-authored-by: Supat L <HuiSou@users.noreply.github.com>
Clicking a scenario stays on the page and swaps the Given/When/Then steps and the trace together, on the index and on each feature page.

Co-authored-by: Supat L <HuiSou@users.noreply.github.com>
@cursor

cursor Bot commented Nov 9, 2026

Copy link
Copy Markdown

Clicking a scenario shows the Given/When/Then spec and the Playwright trace on the same screen.

livingdoc_click_shows_spec_and_trace.mp4

The checkout click-through is an H.264 video in the repository, so the pull request can play it without a Cursor link.

Co-authored-by: Supat L <HuiSou@users.noreply.github.com>
@cursor

cursor Bot commented Nov 9, 2026

Copy link
Copy Markdown

The walkthrough plays on GitHub. Open the video, then the two stills are the same two clicks.

https://github.com/agoda-com/simplebehav-net/blob/polyglot-dsl/docs/demos/livingdoc-click-spec-and-trace.mp4

Place order spec and trace

Disabled submit spec and trace

@HuiSou
HuiSou merged commit f71b44e into main Nov 11, 2026
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.

2 participants