diff --git a/app/views/repositories/_module_result.html.erb b/app/views/repositories/_module_result.html.erb
index 2f6b147..49b8065 100644
--- a/app/views/repositories/_module_result.html.erb
+++ b/app/views/repositories/_module_result.html.erb
@@ -1,4 +1,5 @@
- | <%= %> |
- <%= metric_result.module.name %> |
+ <%= module_result.module.name %> |
+ <%= module_result.module.granularity %> |
+ <%= module_result.grade %> |
\ No newline at end of file
diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb
index eea8ce6..84b39f5 100644
--- a/app/views/repositories/show.html.erb
+++ b/app/views/repositories/show.html.erb
@@ -38,13 +38,20 @@
<% if @processing.ready? %>
Source Tree
<%= @module_results.module.name %>
-
+ <%= @module_results.grade %>
+ <% children = @module_results.children %>
+ <% unless children.empty? %>
+
+
+ | Name |
+ Granularity |
+ Grade |
+
-
+ <%= render partial: 'module_result', collection: children %>
-
-
+ <% end %>
<% end %>
<% if @processing.ready? %>
diff --git a/features/repository/show.feature b/features/repository/show.feature
index 7d13690..99bd00f 100644
--- a/features/repository/show.feature
+++ b/features/repository/show.feature
@@ -3,7 +3,7 @@ Feature: Show Repository
As a regular user
I should see it's informations
- @kalibro_restart
+ @kalibro_restart
Scenario: With a ready processing
Given I am a regular user
And I am signed in
@@ -26,7 +26,7 @@ Feature: Show Repository
And I should see "Weight"
And I should see "Threshold"
- @kalibro_restart @wip
+ @kalibro_restart
Scenario: Just after start to process
Given I am a regular user
And I am signed in
@@ -45,19 +45,7 @@ Feature: Show Repository
And I should not see Weight
And I should not see Threshold
- @kalibro_restart @wip
- Scenario: Should show modules title
- Given I am a regular user
- And I am signed in
- And I have a sample project
- And I have a sample configuration with native metrics
- And I have a sample repository within the sample project
- And I start to process that repository
- And I wait up for a ready processing
- When I visit the repository show page
- Then I should see "Source Tree"
-
- @kalibro_restart @wip
+ @kalibro_restart
Scenario: Should show modules directories root when the process has been finished
Given I am a regular user
And I am signed in
@@ -71,8 +59,8 @@ Feature: Show Repository
When I visit the repository show page
Then I should see the given module result
- @kalibro_restart @wip
- Scenario: Should show childrens of root when the process has been finished
+ @kalibro_restart
+ Scenario: Should show children of root when the process has been finished
Given I am a regular user
And I am signed in
And I have a sample project
@@ -83,4 +71,7 @@ Feature: Show Repository
And I ask for the last ready processing of the given repository
And I ask for the module result of the given processing
When I visit the repository show page
- Then I should see the given module result
\ No newline at end of file
+ Then I should see a sample child's name
+ And I should see "Name"
+ And I should see "Granularity"
+ And I should see "Grade"
\ No newline at end of file
diff --git a/features/step_definitions/repository_steps.rb b/features/step_definitions/repository_steps.rb
index 68202ba..226bd7f 100644
--- a/features/step_definitions/repository_steps.rb
+++ b/features/step_definitions/repository_steps.rb
@@ -65,4 +65,8 @@ end
Then(/^I should see the given module result$/) do
page.should have_content(@module_result.module.name)
+end
+
+Then(/^I should see a sample child's name$/) do
+ page.should have_content(@module_result.children.first.module.name)
end
\ No newline at end of file
--
libgit2 0.21.2