detect_testfly
Check if the working directory is a TestFly project by looking for testfly.yml or io.testfly dependencies. Run before generating Java code to decide whether to use the TestFly framework.
Instructions
Detect whether the current working directory is inside a TestFly project (looks for testfly.yml or the io.testfly dependency in pom.xml / build.gradle, walking up parent directories). Call this BEFORE generating Java code: if it reports detected=true, generate with framework="testfly" so the output uses the framework's accessibility-first locators, open(), and managed driver.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | No | Optional path to start detection from. Defaults to the server's working directory. |