Method: Stax::Cmd::Codebuild#tests
- Defined in:
- lib/stax/mixin/codebuild.rb
#tests(id = nil) ⇒ Object
78 79 80 81 82 83 84 85 86 87 |
# File 'lib/stax/mixin/codebuild.rb', line 78 def tests(id = nil) id ||= Aws::Codebuild.builds_for_project(my.stack_project_names.first, 1).first Aws::Codebuild.builds([id]).first.report_arns.each do |report_arn| debug("Tests for report #{report_arn}") print_table Aws::Codebuild.tests(report_arn).map { |t| duration = (t.duration_in_nano_seconds/1_000_000).to_s + 'ms' [ t.name, color(t.status, COLORS), t.prefix, t., duration ] } end end |