diff --git a/app/views/modules/_hotspot_metric_result.html.erb b/app/views/modules/_hotspot_metric_result.html.erb
index f9368e1..feba291 100644
--- a/app/views/modules/_hotspot_metric_result.html.erb
+++ b/app/views/modules/_hotspot_metric_result.html.erb
@@ -1,4 +1,5 @@
+ <%= hotspot_metric_result.module_result.kalibro_module.short_name %> |
<%= hotspot_metric_result.line_number %> |
<%= hotspot_metric_result.message %> |
diff --git a/app/views/modules/_hotspot_metric_results.html.erb b/app/views/modules/_hotspot_metric_results.html.erb
index 7c26682..84a5ea7 100644
--- a/app/views/modules/_hotspot_metric_results.html.erb
+++ b/app/views/modules/_hotspot_metric_results.html.erb
@@ -1,6 +1,7 @@
+ <%= t('activemodel.attributes.hotspot_metric_result.module_result.module.name') %> |
<%= t('activemodel.attributes.hotspot_metric_result.line') %> |
<%= t('activemodel.attributes.hotspot_metric_result.message') %> |
diff --git a/features/repository/show/hotspot_metric_results.feature b/features/repository/show/hotspot_metric_results.feature
index 775f301..f6be0e2 100644
--- a/features/repository/show/hotspot_metric_results.feature
+++ b/features/repository/show/hotspot_metric_results.feature
@@ -18,6 +18,7 @@ Feature: Repository hotspot metric results
When I visit the repository show page
And I click the "Hotspot Metric Results" h3
Then I should have at least one hotspot metric result
+ And I should see the hotspot metric results file names
And I should see the hotspot metric results messages
@kalibro_configuration_restart @kalibro_processor_restart @javascript
diff --git a/features/step_definitions/repository_steps.rb b/features/step_definitions/repository_steps.rb
index 4fa21de..397ca59 100644
--- a/features/step_definitions/repository_steps.rb
+++ b/features/step_definitions/repository_steps.rb
@@ -234,3 +234,8 @@ Then(/^I should see the hotspot metric results messages$/) do
end
end
+Then(/^I should see the hotspot metric results file names$/) do
+ @metric_results.each do |metric_result|
+ expect(page).to have_content(metric_result.module_result.kalibro_module.short_name)
+ end
+end
--
libgit2 0.21.2