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
|
// setup
|
||||||
app := NewApp()
|
app := NewApp()
|
||||||
app.Commands = []Command{{
|
app.Commands = []Command{{
|
||||||
Name: "myCommand",
|
Name: "command",
|
||||||
Flags: []Flag{StringFlag{Name: "someFlag"}},
|
Flags: []Flag{
|
||||||
|
StringFlag{
|
||||||
|
Name: "flagone",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Action: func(c *Context) error { return nil },
|
||||||
}}
|
}}
|
||||||
|
|
||||||
// logic under test
|
// 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
|
// assertions
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user