-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact-native-coverage.config.js.example
More file actions
47 lines (47 loc) · 1.47 KB
/
Copy pathreact-native-coverage.config.js.example
File metadata and controls
47 lines (47 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* Example consumer config — copy to react-native-coverage.config.js
* and adjust for your dedicated test app (Pattern C).
*
* Defaults are intentionally product-neutral.
*/
module.exports = {
nativeModuleName: 'Coverage',
app: {
androidApplicationId: 'com.example.coverage',
iosBundleId: 'com.example.coverage',
iosProductName: 'CoverageExample',
},
ios: {
// e.g. ['MyLib'] to include MyLib*.framework as llvm-cov objects
frameworkNamePrefixes: [],
},
android: {
libraryProjectMatchers: [],
detoxStagingPath: '/data/local/tmp/coverage/coverage.ec',
coverageRelativePath: 'files/coverage.ec',
jacocoReportXml:
'android/app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml',
},
sourcePathRewrite: [
{ kind: 'after-marker', marker: '/packages/', includeMarker: true },
{
kind: 'regex',
pattern: '^.*/@example-scope/([^/]+)/(.+)$',
replacement: 'packages/$1/$2',
},
],
/**
* Prefer true in CI: pull/export/report/assert exit 2 when expected
* hits or artifacts are empty.
*/
strict: true,
assert: {
/** LCOV SF: paths must include at least one of these substrings. */
lcovPathIncludes: ['packages/'],
/** Jacoco <package name> substrings that must have LINE covered > 0. */
jacocoPackageIncludes: [],
defaultLcovPath: 'coverage/ios/lcov.info',
defaultJacocoXmlPath:
'android/app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml',
},
};