1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-08 17:16:38 +00:00

Remove auto_detect methods and make program detection comprehensive by default

Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-27 03:51:03 +00:00
parent 22499cb0ee
commit a8a00f3483
4 changed files with 86 additions and 85 deletions

View file

@ -3,11 +3,8 @@
use testscript_rs::testscript;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Example 1: Basic usage with auto-detection
testscript::run("testdata")
.auto_detect_network()
.auto_detect_programs(&["docker", "git", "npm", "echo"])
.execute()?;
// Example 1: Basic usage - all conditions detected automatically
testscript::run("testdata").execute()?;
// Example 2: Manual condition setting with environment variables