mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-03 11:37:09 +00:00
feat(folio): drive spec.ts under --generator llm; drop spec-llm.ts
This commit is contained in:
1 parent
98483926a6
commit
9845b89173
4 files changed
+48
-38
No files matched your search
@@ -176,6 +176,30 @@ test: install
|
||||
--seed "{{seed}}" \
|
||||
--output "{{output}}"
|
||||
|
||||
# Run 'sanderling test' with the LLM action generator instead of the seeded
|
||||
# fuzzer. Needs OPENROUTER_API_KEY (or OPENAI_API_KEY) in the environment; the
|
||||
# model is configured by generator = llm({...}) in spec.ts.
|
||||
test-llm: install
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
avd_flag=()
|
||||
if [[ -n "{{avd}}" ]]; then
|
||||
avd_flag=(--avd "{{avd}}")
|
||||
fi
|
||||
if [[ -n "{{android_device}}" ]]; then
|
||||
avd_flag+=(--device "{{android_device}}")
|
||||
fi
|
||||
apk="{{justfile_directory()}}/app/androidApp/build/outputs/apk/debug/androidApp-debug.apk"
|
||||
"{{sanderling}}" test \
|
||||
--spec "{{justfile_directory()}}/sanderling/spec.ts" \
|
||||
--bundle-id app.folio \
|
||||
--generator llm \
|
||||
"${avd_flag[@]}" \
|
||||
--android-app-path "$apk" \
|
||||
--duration "{{duration}}" \
|
||||
--seed "{{seed}}" \
|
||||
--output "{{output}}"
|
||||
|
||||
# Serve the wasmJs web app from a webpack dev server with COOP/COEP headers.
|
||||
web:
|
||||
#!/usr/bin/env bash
|
||||
|
||||
Reference in new issue
Block a user