diff --git a/ctl/backup_test.go b/ctl/backup_test.go new file mode 100644 index 000000000..149157953 --- /dev/null +++ b/ctl/backup_test.go @@ -0,0 +1,15 @@ +package ctl + +import ( + "testing" + "golang.org/x/net/context" +) + +func TestBackupCommand_FileRequired(t *testing.T){ + cm := BackupCommand{} + ctx := context.Background() + err := cm.Run(ctx) + if err.Error() != "output file required"{ + t.Fatalf("Command not working, expect: output file required, actual: '%s'", err) + } +}