diff options
| -rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -127,8 +127,10 @@ In your suite function you can use the `test` function. With the following argum test("echo bonjour je suis") # simple command test("cat < somefile", setup="echo file content > somefile") # setup test("ls > somefile", setup="", files=["somefile"]) # watch a file -test("echo $A", exports={"A": "a"}) # export variables in the environment -test("echo bonjour", hook=lambda s: s.replace("o", "a")) # pass the shell output through a hook function +test("echo $A", exports={"A": "a"}) # export variables + # in the environment +test("echo bonjour", hook=lambda s: s.replace("o", "a")) # pass the shell output + # through a hook function test("cat < somefile > otherfile", setup="echo file content > somefile", |
