more accurate regression reproduction
This commit is contained in:
parent
e042de5cb4
commit
15dc34ea12
11
app_test.go
11
app_test.go
@ -1191,12 +1191,17 @@ func TestRegression(t *testing.T) {
|
||||
// setup
|
||||
app := NewApp()
|
||||
app.Commands = []Command{{
|
||||
Name: "myCommand",
|
||||
Flags: []Flag{StringFlag{Name: "someFlag"}},
|
||||
Name: "command",
|
||||
Flags: []Flag{
|
||||
StringFlag{
|
||||
Name: "flagone",
|
||||
},
|
||||
},
|
||||
Action: func(c *Context) error { return nil },
|
||||
}}
|
||||
|
||||
// logic under test
|
||||
err := app.Run([]string{"myCLI", "myCommand", "--someFlag", "someInput", "docker", "run", "--rm", "ubuntu", "bash"})
|
||||
err := app.Run([]string{"cli", "command", "--flagone", "flagvalue", "docker", "image", "ls", "--no-trunc"})
|
||||
|
||||
// assertions
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user