Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
444486ef
Commit
444486ef
authored
Oct 30, 2020
by
mfluharty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add component skeleton
parent
e0c43662
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
ee/app/assets/javascripts/analytics/repository_analytics/components/group_repository_analytics.vue
...itory_analytics/components/group_repository_analytics.vue
+3
-0
ee/app/assets/javascripts/analytics/repository_analytics/components/test_coverage_summary.vue
...repository_analytics/components/test_coverage_summary.vue
+21
-0
No files found.
ee/app/assets/javascripts/analytics/repository_analytics/components/group_repository_analytics.vue
View file @
444486ef
<
script
>
import
{
s__
}
from
'
~/locale
'
;
import
glFeatureFlagsMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
import
TestCoverageSummary
from
'
./test_coverage_summary.vue
'
;
import
TestCoverageTable
from
'
./test_coverage_table.vue
'
;
import
DownloadTestCoverage
from
'
./download_test_coverage.vue
'
;
export
default
{
name
:
'
GroupRepositoryAnalytics
'
,
components
:
{
TestCoverageSummary
,
TestCoverageTable
,
DownloadTestCoverage
,
},
...
...
@@ -27,6 +29,7 @@ export default {
<h4
data-testid=
"test-coverage-header"
>
{{
$options
.
text
.
codeCoverageHeader
}}
</h4>
<test-coverage-summary
/>
<test-coverage-table
v-if=
"shouldShowCoverageReport"
class=
"gl-mb-5"
/>
<download-test-coverage
/>
</div>
...
...
ee/app/assets/javascripts/analytics/repository_analytics/components/test_coverage_summary.vue
0 → 100644
View file @
444486ef
<
script
>
import
MetricCard
from
'
~/analytics/shared/components/metric_card.vue
'
;
export
default
{
name
:
'
TestCoverageSummary
'
,
components
:
{
MetricCard
,
},
};
</
script
>
<
template
>
<metric-card
:title=
"__('Overall Activity')"
:metrics=
"[
{ key: 1, value: 45, unit: '', label: 'Projects with Tests' },
{ key: 2, value: 72, unit: '%', label: 'Average Coverage by Job' },
{ key: 3, value: 103, unit: '', label: 'Total Number of Coverages' },
]"
:is-loading="false"
/>
</
template
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment