Configuration

<% if repository.multi? %>
<% repository.repositories.each do |repository_path, repository| %> <% end %>
Repository Configuration
<%= repository_path %>
Remote:
<%= repository.remote_uri_path %>
Software branch(es):
<%= software_branches(repository).join(', ') %>
Git sha1:
<%= repository.head.sha %>
Build:
-- Not implemented --
<% else %>
Repository:
<%= repository.remote_uri_path %>
Software branch(es):
<%= software_branches(repository).join(', ') %>
Git sha1:
<%= repository.head.sha %>
Build:
-- Not implemented --
<% end %>
<% if test_records_by_requirement.any? %>
Requirements
<% total_requirements = test_records_by_requirement.size %>
<%= total_requirements %>
<% requirements_by_status = test_records_by_requirement.group_by do |_requirement, test_records| if test_records.all? { |test_record| test_record.verification_result.passed? } :passed elsif test_records.any? { |test_record| test_record.verification_result.failed? } :failed else :skipped end end total_passed = requirements_by_status[:passed]&.size || 0 total_skipped = requirements_by_status[:skipped]&.size || 0 total_failed = requirements_by_status[:failed]&.size || 0 passed_percent = percentage(total_passed, total_requirements) skipped_percent = percentage(total_skipped, total_requirements) failed_percent = percentage(total_failed, total_requirements) %>
Passed <%= total_passed %> (<%= passed_percent %>%)
Failed <%= total_failed %> (<%= failed_percent %>%)
Skipped <%= total_skipped %> (<%= skipped_percent %>%)
<% end %>
Test cases
<% total_test_records = test_records.size %>
<%= total_test_records %>
<% test_records_by_status = test_records.group_by do |test_record| if test_record.reviewed? test_record.findings? ? :skipped : :passed else :failed end end total_passed = test_records_by_status[:passed]&.size || 0 total_skipped = test_records_by_status[:skipped]&.size || 0 total_failed = test_records_by_status[:failed]&.size || 0 passed_percent = percentage(total_passed, total_test_records) skipped_percent = percentage(total_skipped, total_test_records) failed_percent = percentage(total_failed, total_test_records) %>
Reviewed <%= total_passed %> (<%= passed_percent %>%)
Not reviewed <%= total_failed %> (<%= failed_percent %>%)
Findings <%= total_skipped %> (<%= skipped_percent %>%)

MTR Files

Overview

<% errors.each do |error| %> <% end %> <% test_records.each do |test_record| %> <% end %>
File Status Reason
<%= relative_to_repo(error[:file]) %> Failed <%= error[:message] %>
<%= error[:exception].message %>
<%= relative_to_repo(test_record.source_file) %> Successfully Loaded -

Test results

Overview

<% test_records.each_with_index do |test_record, index| %> <% end %>
# Requirement ID SHA1 Files Review Status Test Result Details
<%= index + 1 %> <%= test_record_id_to_string(test_record) %> <%= test_record.sha1 ? shorten_sha1(test_record.sha1) : '(None)' %> <% if test_record.files&.any? %> <%= test_record.files.map { |file| relative_to_repo(file) }.join('
') %> <% else %> (None) <% end %>
<%= review_status_badge(test_record) %> <%= verification_result_badge(test_record.verification_result) %>
<% test_records.each_with_index do |test_record, index| %>

<%= test_record_id_to_string(test_record) %>

MTR file:
<%= relative_to_repo(test_record.source_file) %>
<% if test_record.name.present? %>
Tester name:
<%= test_record.name.join(', ') %>
<% end %> <% if test_record.test_method.present? %>
Test method:
<%= test_record.test_method.join(', ') %>
<% end %> <% if test_record.tc_derivation_method.present? %>
Derivation method:
<%= test_record.tc_derivation_method.join(', ') %>
<% end %> <% if test_record.repos %>
Repositories:
    <% test_record.repos.each do |repo| %>
  • <%= repo.path %>
    <%= repo.sha1 %>
    <% repo.files&.each do |file| %>
    • <%= relative_to_repo(file).sub("#{repo.path}/", '') %>
    <% end %>
  • <% end %>
<% else %>
SHA1:
<%= test_record.sha1 %>
Files:
<% if test_record.files&.any? %> <%= test_record.files.map { |file| relative_to_repo(file) }.join('
') %> <% else %> (None) <% end %>
<% end %>
ASIL:
-- Not implemented --
SECL:
-- Not implemented --
Description:
<%= test_record.description&.gsub("\n", '
') %>
Test Result:
<%= verification_result_badge(test_record.verification_result) %>
<% unless test_record.verification_result.passed? %>
Reason:
<%= test_record.verification_result.reason %>
<% end %>
Review Status:
<%= review_status_badge(test_record) %>
Review Comments:
<%= test_record.review_comments || '(None)' %>
<% end %>