Lines Matching refs:pkg
15 function getTestSpecNames(pkg: Packages.Package): string[] {
16 const podspec = fs.readFileSync(path.join(pkg.path, pkg.podspecPath!), 'utf8');
32 for (const pkg of allPackages) { constant
33 if (!pkg.podspecName || !pkg.podspecPath || !(await pkg.hasNativeTestsAsync('ios'))) {
34 if (packageNamesFilter.includes(pkg.packageName)) {
35 throw new Error(`The package ${pkg.packageName} does not include iOS unit tests.`);
40 if (packageNamesFilter.length > 0 && !packageNamesFilter.includes(pkg.packageName)) {
44 const testSpecNames = getTestSpecNames(pkg);
47 `Failed to test package ${pkg.packageName}: no test specs were found in podspec file.`
52 targetsToTest.push(`${pkg.podspecName}-Unit-${testSpecName}`);
54 packagesToTest.push(pkg.packageName);