Files
sanderling/cmd/sanderling/test_run.go
T
pj 74cae01a5c feat(cli): --allow-no-generator-actions
The flag the dead-run refusal names, wired through to the pipeline. The
property-free flag goes back to meaning what it says.
2026-08-18 20:10:29 +05:30

40 lines
1.4 KiB
Go

package main
import (
"context"
"io"
"github.com/priyanshujain/sanderling/internal/testrun"
)
func runTestPipeline(ctx context.Context, options testOptions, stdout io.Writer) error {
return testrun.Execute(ctx, pipelineOptions(options), stdout)
}
// pipelineOptions maps the parsed flags onto the pipeline's options. A field
// dropped on the way through here is a run that executes one experiment cell
// and records another, which is worth being able to test on its own.
func pipelineOptions(options testOptions) testrun.Options {
return testrun.Options{
Spec: options.spec,
AllowNoProperties: options.allowNoProperties,
AllowNoGeneratorActions: options.allowNoGeneratorActions,
BundleID: options.bundleID,
Platform: options.platform,
AVD: options.avd,
Device: options.device,
IosDevice: options.iosDevice,
IosAppPath: options.iosAppPath,
AndroidAppPath: options.androidAppPath,
Duration: options.duration,
MaxSteps: options.maxSteps,
Seed: options.seed,
Output: options.output,
ClearData: options.clearData,
Generator: options.generator,
LabelSource: options.labelSource,
Arm: options.arm,
ExitOnViolation: options.exitOnViolation,
}
}