No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
ec8eae5
... +1 ...
899265d
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
272 | 272 | ||
273 | 273 | exports.rejectattr = rejectattr; |
|
274 | 274 | ||
275 | + | function select(arr, testName = 'truthy', secondArg) { |
|
276 | + | const context = this; |
|
277 | + | const test = context.env.getTest(testName); |
|
278 | + | ||
279 | + | return arr.filter(function applyToTest(item) { |
|
280 | + | return test.call(context, item, secondArg); |
|
281 | + | }); |
|
282 | + | } |
|
283 | + | ||
284 | + | exports.select = select; |
|
285 | + | ||
275 | 286 | function selectattr(arr, attr) { |
|
276 | 287 | return arr.filter((item) => !!item[attr]); |
|
277 | 288 | } |
Files | Coverage |
---|---|
nunjucks | 0.02% 89.55% |
Project Totals (22 files) | 89.55% |
899265d
2031bf2
ec8eae5