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
f102a661
Commit
f102a661
authored
Dec 09, 2019
by
Winnie Hellmann
Committed by
Martin Wortschack
Dec 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove coverage hack from Karma
parent
bd3aa45c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
45 deletions
+1
-45
spec/javascripts/performance_bar/index_spec.js
spec/javascripts/performance_bar/index_spec.js
+1
-0
spec/javascripts/test_bundle.js
spec/javascripts/test_bundle.js
+0
-45
No files found.
spec/javascripts/performance_bar/index_spec.js
View file @
f102a661
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
'
~/performance_bar/components/performance_bar_app.vue
'
;
import
performanceBar
from
'
~/performance_bar
'
;
import
PerformanceBarService
from
'
~/performance_bar/services/performance_bar_service
'
;
...
...
spec/javascripts/test_bundle.js
View file @
f102a661
...
...
@@ -165,48 +165,3 @@ describe('test errors', () => {
}
});
});
// if we're generating coverage reports, make sure to include all files so
// that we can catch files with 0% coverage
// see: https://github.com/deepsweet/istanbul-instrumenter-loader/issues/15
if
(
process
.
env
.
BABEL_ENV
===
'
coverage
'
)
{
// exempt these files from the coverage report
const
troubleMakers
=
[
'
./pages/admin/application_settings/general/index.js
'
,
'
./geo_designs/index.js
'
,
];
describe
(
'
Uncovered files
'
,
function
()
{
const
sourceFilesContexts
=
[
require
.
context
(
'
~
'
,
true
,
/
\.(
js|vue
)
$/
)];
if
(
process
.
env
.
IS_EE
)
{
sourceFilesContexts
.
push
(
require
.
context
(
'
ee
'
,
true
,
/
\.(
js|vue
)
$/
));
}
const
allTestFiles
=
testContexts
.
reduce
(
(
accumulator
,
context
)
=>
accumulator
.
concat
(
context
.
keys
()),
[],
);
$
.
holdReady
(
true
);
sourceFilesContexts
.
forEach
(
context
=>
{
context
.
keys
().
forEach
(
path
=>
{
// ignore if there is a matching spec file
if
(
allTestFiles
.
indexOf
(
`
${
path
.
replace
(
/
\.(
js|vue
)
$/
,
''
)}
_spec`
)
>
-
1
)
{
return
;
}
it
(
`includes '
${
path
}
'`
,
function
()
{
try
{
context
(
path
);
}
catch
(
err
)
{
if
(
troubleMakers
.
indexOf
(
path
)
===
-
1
)
{
expect
(
err
).
toBeNull
();
}
}
});
});
});
});
}
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