Closed osterman closed 4 years ago
#!/usr/bin/env variant job "hello" { parameter "noun" { type = string } exec { command = "echo" args = [ param.noun ] } } test "hello" { case "world" { noun = "world" exitstatus = 0 stdout = "world" } run "hello world" { } assert "exitstatus" { condition = run.res.exitstatus == case.exitstatus } assert "output" { condition = run.stdout == case.stdout } }
@osterman I've added documentation about testing which is available at https://github.com/mumoshu/variant2#writing-tests. Does it work?
what
example variant