@letsrunit/executor
v0.1.0
Published
High-level test execution orchestrator for letsrunit
Maintainers
Readme
Executor Package (@letsrunit/executor)
Installation
npm install @letsrunit/executor
# or
yarn add @letsrunit/executorHigh-level engine for running complex automation tasks. It ties together AI, Controller, and BDD packages to provide the core workflows of the letsrunit platform.
Exported Functions
explore(target, opts, process)
Automatically navigates a website to discover functionality and potential user stories.
target: The starting URL.opts: Options likeheadlessandjournal.process: A callback function(info: AppInfo, actions: PreparedAction[]) => Promise<any>that is called with the discovered information and actions. Each action inPreparedActionhas arun()method to generate the corresponding feature.
generate(target, suggestion, opts)
Generates full Gherkin features from high-level instructions and real-time page analysis.
target: The target URL.suggestion: AFeatureobject (or partial) describing what to generate.opts: Includesheadless,journal,accounts(for login), andtimeout.
run(target, feature, opts)
Executes a given Gherkin feature on a target URL with full reporting.
target: The target URL.feature: AFeatureobject or a Gherkin string.opts: Includesheadlessandjournal.
refineSuggestion(suggestion)
Uses AI to refine and improve a user-provided test suggestion.
Testing
Run tests for this package:
yarn test