pub struct QaWorkspace {
pub run_id: String,
pub root: PathBuf,
pub home: PathBuf,
pub data_dir: PathBuf,
pub evidence_dir: PathBuf,
pub capture_dir: PathBuf,
pub env: BTreeMap<String, String>,
}Fields§
§run_id: String§root: PathBufManaged run root: <managed>/runs/<app>/<run-id>.
home: PathBufOwned app home on internal system temp storage.
data_dir: PathBuf§evidence_dir: PathBuf§capture_dir: PathBuf§env: BTreeMap<String, String>Environment that points an app at this workspace (profile isolation).
Implementations§
Source§impl QaWorkspace
impl QaWorkspace
Sourcepub fn set_kind(&self, kind: RunKind) -> Result<()>
pub fn set_kind(&self, kind: RunKind) -> Result<()>
Record the run kind in the run marker (see storage::RunKind).
Sourcepub fn set_outcome(&self, outcome: RunOutcome) -> Result<()>
pub fn set_outcome(&self, outcome: RunOutcome) -> Result<()>
Record how the run ended in the run marker. Retention reads this and nothing else; a run that never gets an outcome is never pruned by it.
Sourcepub fn finish(&self) -> Result<()>
pub fn finish(&self) -> Result<()>
Preserve app-written outputs before marking this run complete.
Sourcepub fn scenario_dir(&self, name: &str) -> Result<PathBuf>
pub fn scenario_dir(&self, name: &str) -> Result<PathBuf>
A fresh per-scenario directory inside the isolated data dir. It is private to the user, like
a home, and carries a runner binding (.rightkit-app.json) with the home’s app, runRoot
and runId plus the scenario name, so a test-capable app can be given it as its bound
root. The binding is bookkeeping, not proof of the runner: rightkit-fs checks only that its
app equals the app’s id.