Skip to content

Commit a6cc7e5

Browse files
committed
Limit to Firestore unit tests
1 parent e51cdbf commit a6cc7e5

File tree

2 files changed

+9
-22
lines changed

2 files changed

+9
-22
lines changed

config/karma.saucelabs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ if (!testConfigFile) {
3131
*/
3232
const browserMap = {
3333
// Desktop
34-
Chrome_Windows: seleniumLauncher('chrome', 'Windows 10', 'latest')
35-
// Firefox_Windows: seleniumLauncher('firefox', 'Windows 10', 'latest'),
36-
// Safari_macOS: seleniumLauncher('safari', 'macOS 10.13', 'latest'),
37-
// Edge_Windows: seleniumLauncher('MicrosoftEdge', 'Windows 10', 'latest'),
38-
// IE_Windows: seleniumLauncher('internet explorer', 'Windows 10', 'latest')
34+
Chrome_Windows: seleniumLauncher('chrome', 'Windows 10', 'latest'),
35+
Firefox_Windows: seleniumLauncher('firefox', 'Windows 10', 'latest'),
36+
Safari_macOS: seleniumLauncher('safari', 'macOS 10.13', 'latest'),
37+
Edge_Windows: seleniumLauncher('MicrosoftEdge', 'Windows 10', 'latest'),
38+
IE_Windows: seleniumLauncher('internet explorer', 'Windows 10', 'latest')
3939

4040
// Mobile
4141
// Safari_iOS: appiumLauncher('Safari', 'iPhone Simulator', 'iOS', '11.2'),

scripts/run_saucelabs.js

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ const { configFiles } = yargs
3636
// runNextTest() pulls filenames one-by-one from this queue.
3737
const testFiles = configFiles.length
3838
? configFiles
39-
: glob.sync(`{packages,integration}/*/karma.conf.js`);
40-
// Automated tests in integration/firestore are currently disabled.
41-
// .filter(name => !name.includes('integration/firestore'));
39+
: glob
40+
.sync(`{packages,integration}/*/karma.conf.js`)
41+
// Automated tests in integration/firestore are currently disabled.
42+
.filter(name => !name.includes('integration/firestore'));
4243

4344
// Get CI build number or generate one if running locally.
4445
const buildNumber =
@@ -65,20 +66,6 @@ async function runTest(testFile) {
6566
});
6667
}
6768
}
68-
if (testFile.includes('integration/firestore')) {
69-
console.log('Generating memory build.');
70-
await spawn('yarn', ['--cwd', 'integration/firestore', 'build:memory'], {
71-
stdio: 'inherit'
72-
});
73-
console.log('Running tests on memory build.');
74-
const exitCode1 = await runKarma(testFile);
75-
// console.log('Generating persistence build.');
76-
// await spawn('yarn', ['--cwd', 'integration/firestore', 'build:persistence'], { stdio: 'inherit' });
77-
// console.log('Running tests on persistence build.');
78-
// const exitCode2 = await runKarma(testFile);
79-
// return Math.max(exitCode1, exitCode2);
80-
return exitCode1;
81-
}
8269
return runKarma(testFile);
8370
}
8471

0 commit comments

Comments
 (0)