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:
parent
22499cb0ee
commit
a8a00f3483
4 changed files with 86 additions and 85 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue