Repository navigation
Releases
Releases · janalis/tuink
v0.1.0
0.1.0 - 2026-11-22
Added
- Behat extension with an
in_processdriver (the app'sTuion aVirtualTerminal, the Revolt loop turned in slices) and aprocessdriver (the real command in a pseudo-terminal). TuiContextsteps to start, type, press keys with modifiers, send text and keys together, paste, resize, wait, stop and restart the app.- Screen checks: text, regular expressions, lines, regions, the whole screen, snapshots, text counts, and their negations; checks wait for late frames up to
timeoutand failures print the screen with row numbers. - Steps after MinkContext: fill in fields (one or a table), select from a list, field and element contents, focus and values.
- CSS selectors for widgets through symfony/css-selector: element names from widget classes, id, style classes, label, value, selected item,
:focus,:visible,:contains(). TuiProbe, which an application's entry point installs to share its widgets with the process driver over a Unix socket, so selector steps work on both drivers.- Mouse steps: left, right, middle, double and triple clicks with modifiers, on an element, on text or at a cell; hover; wheel scrolling; dragging. They send SGR (mode 1006) reports, as a terminal does.
- Terminal steps: text styles (bold, italic and the other attributes, foreground and background colors), the bell and the window title.
- Key combinations without a legacy encoding, like Ctrl+Tab or Shift+Backspace, are sent in the CSI u form the Tui key parser reads.
@in_processand@processtags switch the driver per scenario or feature.- A
process.temp_diroption for where the probe socket and the terminal name go, for systems whose temporary directory path is too long for a Unix socket. - The
Tuinkmanager is injected into context constructors that ask for it by type, and into contexts implementingTuinkAwareContextInterface. - A workspace per scenario: a temporary directory the application finds in
TUINK_WORKSPACEand steps name%workspace%, with steps to write files and directories, delete them, and check the files the application writes. - Arguments and environment variables per scenario, given to the in-process factory as a
Launch(and set in$_SERVERand$_ENVtoo, so the application's subprocesses get them) and to the process driver's command; a terminal that speaks the kitty keyboard protocol. - Frame steps that read, check and click inside the frame whose top border carries a title, and steps for where texts are relative to each other.
InProcessApplicationInterface: an in-process factory may return one to have the driver call itsboot()before theTuistarts and itsshutdown()after it stops, for entry points that do more thanTui::run();InProcessDriver::getApplication()returns it to custom steps.- The Super modifier (
Super+S,Cmd+S), sent in the CSI u form, andPage_Up/Page_Downas names of the page keys. - Steps for a text having any color or none, for the line on which a text shows, and to write an executable file.
I click on the last "…" on line N, for a row that shows the same text twice.- Ctrl+Shift with a character that is not a letter, like
Ctrl+Shift+-, keeps its Shift: it is sent as CSI u instead of as the plain control code. - A modified letter is the same key in either case:
Alt+Ssends Alt+s, asCtrl+Ssends Ctrl+s;Alt+Shift+Ssends the capital. - Ctrl with a character that has no control code, like
Ctrl+,orCtrl+1, is sent in the CSI u form instead of being refused. - The process driver puts the application's standard error on the terminal, as a terminal does, so console questions and errors written there show.
- The process driver ends an application whose test run died without stopping it, like a test runner killed on timeout, instead of leaving it running.
- Starting the app waits up to
start_timeoutfor it to put the terminal in raw mode, longer than a step, so keys do not reach a terminal it has not taken over yet; one that stays in line mode goes on then if it wrote, and fails to start if it did not. - Terminal state steps: the clipboard (OSC 52), DEC private modes (mouse, bracketed paste, alternate screen, focus events), the cursor's visibility, position and shape, and focus in and out reports.