metric.tests.abbreviation=UTs
metric.test_execution_time.name=Unit tests duration
+metric.test_execution_time.short_name=Duration
metric.test_execution_time.description=Execution duration of unit tests
metric.test_execution_time.abbreviation=UTs dur.
metric.test_errors.name=Unit tests errors
+metric.test_errors.short_name=Errors
metric.test_errors.description=Number of unit test errors
metric.test_errors.abbreviation=UTs errors
metric.skipped_tests.abbreviation=Skipped UTs
metric.test_failures.name=Unit tests failures
+metric.test_failures.short_name=Failures
metric.test_failures.description=Number of unit test failures
metric.test_failures.abbreviation=UTs failures
metric.test_success_density.name=Unit tests success (%)
+metric.test_success_density.short_name=Success
metric.test_success_density.description=Density of successful unit tests
metric.test_success_density.abbreviation=UTs success
component_viewer.measure_section.issues=Issues
component_viewer.measure_section.sqale=SQALE
component_viewer.measure_section.unit_tests=Unit Tests
+component_viewer.measure_section.tests=Tests
+component_viewer.measure_section.test_names=Test Names
component_viewer.measure_section.integration_tests=Integration Tests
component_viewer.issues.current_issue=Current Issue
component_viewer.transition.duplication=Duplicated By
component_viewer.x_lines_are_covered={0} lines are covered
+component_viewer.details=Details
component_viewer.workspace=Workspace
component_viewer.workspace.tooltip=Keeps track of history of navigation
+component_viewer.workspace.show_workspace=Show workspace
+component_viewer.workspace.hide_workspace=Hide workspace
<div class="component-viewer-popup-container">
-{{#notEq test.status 'OK'}}
- {{#if test.message}}
- <div class="component-viewer-popup-title">{{test.message}}</div>
- {{/if}}
- <pre>{{test.stackTrace}}</pre>
-{{/notEq}}
-
-{{#notEq test.status 'ERROR'}}
- <div class="component-viewer-popup-title">{{t 'component_viewer.transition.covers'}}</div>
+ {{#notEq test.status 'ERROR'}}
+ <div class="component-viewer-popup-title">{{t 'component_viewer.transition.covers'}}</div>
+ {{#each items}}
+ <div class="component-viewer-popup-section">
+ <a class="component-viewer-popup-test-file link-action" data-key="{{key}}" title="{{name}}">{{name}}</a>
+ <span class="subtitle">{{tp 'component_viewer.x_lines_are_covered' coveredLines}}</span>
+ <br><span class="subtitle" title="{{dir}}">{{dir}}</span>
+ </div>
+ {{else}}
+ {{t 'none'}}
+ {{/each}}
+ {{/notEq}}
- {{#each items}}
- <div class="component-viewer-popup-section">
- <a class="component-viewer-popup-test-file link-action" data-key="{{key}}" title="{{name}}">{{name}}</a>
- <span class="subtitle">{{tp 'component_viewer.x_lines_are_covered' coveredLines}}</span>
- <br><span class="subtitle" title="{{dir}}">{{dir}}</span>
- </div>
- {{else}}
- {{t 'none'}}
- {{/each}}
+ {{#notEq test.status 'OK'}}
+ <div class="component-viewer-popup-title">{{t 'component_viewer.details'}}</div>
+ {{#if test.message}}
+ <pre>{{test.message}}</pre>
+ {{/if}}
+ <pre>{{test.stackTrace}}</pre>
+ {{/notEq}}
- </div>
-{{/notEq}}
+</div>
<div class="component-viewer-popup-arrow"></div>
\ No newline at end of file
{{#any test_success_density test_failures test_errors test_execution_time}}
<div class="component-viewer-header-expanded-bar-section">
<div class="component-viewer-header-expanded-bar-section-title">
- {{t 'component_viewer.measure_section.unit_tests'}}
+ {{t 'component_viewer.measure_section.tests'}}
</div>
<ul class="component-viewer-header-expanded-bar-section-list">
- {{{componentViewerHeaderItem test_success_density 'test_success_density'}}}
- {{{componentViewerHeaderItem test_failures 'test_failures'}}}
- {{{componentViewerHeaderItem test_errors 'test_errors'}}}
- {{{componentViewerHeaderItem test_execution_time 'test_execution_time'}}}
+ {{#if test_success_density}}
+ <li><span class="item">
+ <span class="label">{{t 'metric.test_success_density.short_name'}}</span>
+ <span class="number">{{test_success_density}}</span>
+ </span></li>
+ {{/if}}
+ {{#if test_failures}}
+ <li><span class="item">
+ <span class="label">{{t 'metric.test_failures.short_name'}}</span>
+ <span class="number">{{test_failures}}</span>
+ </span></li>
+ {{/if}}
+ {{#if test_errors}}
+ <li><span class="item">
+ <span class="label">{{t 'metric.test_errors.short_name'}}</span>
+ <span class="number">{{test_errors}}</span>
+ </span></li>
+ {{/if}}
+ {{#if test_execution_time}}
+ <li><span class="item">
+ <span class="label">{{t 'metric.test_execution_time.short_name'}}</span>
+ <span class="number">{{test_execution_time}}</span>
+ </span></li>
+ {{/if}}
</ul>
</div>
{{/any}}
<div class="component-viewer-header-expanded-bar-section large">
<div class="component-viewer-header-expanded-bar-section-title justify">
- <span class="ib">{{t 'component_viewer.measure_section.unit_tests'}}</span>
+ <span class="ib">{{t 'component_viewer.measure_section.test_names'}}</span>
<span class="ib">Covered Lines</span>
</div>
<ul class="component-viewer-header-expanded-bar-section-list">
<div class="component-viewer-workspace-header">
<div class="component-viewer-workspace-title"
title="{{t 'component_viewer.workspace.tooltip'}}">{{t 'component_viewer.workspace'}}</div>
- <button class="button-clean component-viewer-workspace-toggle js-toggle-workspace">
+ <button class="button-clean component-viewer-workspace-toggle js-toggle-workspace"
+ title="{{#if settings.workspace}}{{t 'component_viewer.workspace.hide_workspace'}}{{else}}{{t 'component_viewer.workspace.show_workspace'}}{{/if}}">
{{#if settings.workspace}}
<i class="icon-double-chevron-left"></i>
{{else}}
}
.component-viewer-workspace-enabled {
- .component-viewer-workspace .component-viewer-workspace-list { display: block; }
+ .component-viewer-workspace .component-viewer-workspace-list,
+ .component-viewer-workspace .component-viewer-workspace-title { display: block; }
}
}
.component-viewer-workspace-title {
+ display: none;
padding: 0 30px 0 10px;
line-height: 30px;
text-transform: uppercase;
}
.component-viewer-popup-container {
- min-width: 560px;
+ max-width: 560px;
max-height: 300px;
overflow: auto;
}
white-space: nowrap;
}
-.component-viewer-popup-section + .component-viewer-popup-section {
+.component-viewer-popup-section + .component-viewer-popup-section,
+.component-viewer-popup-section + .component-viewer-popup-title {
margin-top: 10px;
}