(ctx plugin.ExecutionContext)
| 323 | } |
| 324 | |
| 325 | func (c TestRunCommand) getSources(ctx plugin.ExecutionContext) ([]string, error) { |
| 326 | sources := c.getStringArrayParameter("source", []string{"."}, ctx.Parameters) |
| 327 | result := []string{} |
| 328 | for _, source := range sources { |
| 329 | source, _ = filepath.Abs(source) |
| 330 | fileInfo, err := os.Stat(source) |
| 331 | if err != nil { |
| 332 | return []string{}, fmt.Errorf("%s not found", studio.DefaultProjectJson) |
| 333 | } |
| 334 | if fileInfo.IsDir() { |
| 335 | source = filepath.Join(source, studio.DefaultProjectJson) |
| 336 | } |
| 337 | result = append(result, source) |
| 338 | } |
| 339 | return result, nil |
| 340 | } |
| 341 | |
| 342 | func (c TestRunCommand) getFolder(parameters []plugin.ExecutionParameter) string { |
| 343 | folderId := c.getIntParameter("folder-id", 0, parameters) |
no test coverage detected