Process Run Test Setup

Use when testing code that spawns processes or implements a process_run ShellContext, with the process_run_test helper package: compileEcho() to build the process_run_echo test executable, compileChild() to build the process_run_child program for kill and signal tests (process trees, explicit exit codes on sigterm/sigint), compileSharedStdinChild() for the sharedStdIn program (end of input, prompt, terminate, compiled and as a dart run script), driving these programs with Shell and ShellLinesController (not dart:io Process.start), EchoTestContext and echoTests(context) for the shared echo suite, shellCoreTests(shellContext) for the shared Shell suite on the io or memory context (shellContext, shellContextMemory, ShellContextMemory), and the echo command options (--stdout, --stderr, --stdout-hex, --stderr-hex, --stdin, --exit-code, --write-line, --wait, --stdout-env, --all-env, --version).

tekartik Updated

File contents

tekartik/process_run.dart commit c03640a5d4

Frequently asked questions

npx get-skill add tekartik/process-run-test-setup