(t *testing.T)
| 321 | } |
| 322 | |
| 323 | func TestConfigure_Project_NotExist(t *testing.T) { |
| 324 | celer := newInitializedCeler(t) |
| 325 | cmd := &configureCmd{} |
| 326 | |
| 327 | stderr, err := runCommand(t, cmd.Command(celer), "--project=xxxx") |
| 328 | if err == nil { |
| 329 | t.Fatal("it should be failed") |
| 330 | } |
| 331 | if !strings.Contains(stderr, "project not exist") { |
| 332 | t.Fatalf("stderr should report missing project, got:\n%s", stderr) |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | func TestConfigure_Project_Empty(t *testing.T) { |
| 337 | celer := newInitializedCeler(t) |
nothing calls this directly
no test coverage detected