selfexercise.md
testexec selfexercise file🔗
We will run a script with some files provisioned:
body-a
The script is simple:
echo hello
ls
The output is unsurprising:
hello
a
We can make subtests which add more files:
body-b
ls
a
b
We can also affect the filesystem in subtests:
echo "body-c" > ./c
ls
Notice that this doesn't inherit the file "b" from the last test -- this is because they're siblings, so they each got a copy of the parent filesystem state.
a
c
If we make a subtest of that subtest, it also inherits a copy of those effects:
ls
cat ./c
a
c
body-c
testexec/selfexercise.md · 1.1 KiB · e2e3f3b4f1