(bench bool)
| 417 | } |
| 418 | |
| 419 | func integration(bench bool) { |
| 420 | lazyRebuildAssets() |
| 421 | args := []string{"test", "-v", "-timeout", "60m", "-tags"} |
| 422 | tags := "integration" |
| 423 | if bench { |
| 424 | tags += ",benchmark" |
| 425 | } |
| 426 | args = append(args, tags) |
| 427 | args = append(args, runArgs()...) |
| 428 | if bench { |
| 429 | if run == "" { |
| 430 | args = append(args, "-run", "Benchmark") |
| 431 | } |
| 432 | args = append(args, benchArgs()...) |
| 433 | } |
| 434 | args = append(args, "./test") |
| 435 | fmt.Println(args) |
| 436 | runPrint(goCmd, args...) |
| 437 | } |
| 438 | |
| 439 | func runArgs() []string { |
| 440 | if run == "" { |
no test coverage detected