aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-02-06 10:47:53 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2013-02-06 10:48:06 +0100
commit9e2626923826645a4d3cc4631928ea358f92cd58 (patch)
tree6e173a912eda78773aa7edfafe6255cf5242f301 /plugins
parent3d80bdfe7d20f818c9b728d8d99c30f2c064ac45 (diff)
downloadsonarqube-9e2626923826645a4d3cc4631928ea358f92cd58.tar.gz
sonarqube-9e2626923826645a4d3cc4631928ea358f92cd58.zip
Fix issue when displaying parameter tests
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/web/tests_viewer.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/web/tests_viewer.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/web/tests_viewer.html.erb
index 99e9c06c50b..87fd4234f8f 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/web/tests_viewer.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/web/tests_viewer.html.erb
@@ -59,8 +59,8 @@
test_case[:name] = test.name
test_case[:status] = test.status.name
test_case[:time] = test.durationInMs
- has_covered_lines = test.doesCover
- test_case[:covered_lines] = test.countCoveredLines if has_covered_lines
+ has_covered_lines ||= test.doesCover
+ test_case[:covered_lines] = test.countCoveredLines if test.doesCover
if test.status().to_s != 'ok'
test_case[:message] = ''
test_case[:message] = test.message if test.message