MCPcopy
hub / github.com/meteor/meteor / runTestAppForPackages

Function runTestAppForPackages

tools/cli/commands.js:1970–2020  ·  view source on GitHub ↗
(projectContext, options)

Source from the content-addressed store, hash-verified

1968};
1969
1970var runTestAppForPackages = function (projectContext, options) {
1971 var buildOptions = {
1972 minifyMode: options.production ? 'production' : 'development'
1973 };
1974 buildOptions.buildMode = "test";
1975
1976 if (options.deploy) {
1977 // Run the constraint solver and build local packages.
1978 main.captureAndExit("=> Errors while initializing project:", function () {
1979 projectContext.prepareProjectForBuild();
1980 });
1981 // No need to display the PackageMapDelta here, since it would include all
1982 // of the packages!
1983
1984 buildOptions.serverArch = DEPLOY_ARCH;
1985 return deploy.bundleAndDeploy({
1986 projectContext: projectContext,
1987 site: options.deploy,
1988 settingsFile: options.settings,
1989 buildOptions: buildOptions,
1990 recordPackageUsage: false
1991 });
1992 } else {
1993 var runAll = require('../runners/run-all.js');
1994 return runAll.run({
1995 projectContext: projectContext,
1996 proxyPort: options.proxyPort,
1997 proxyHost: options.proxyHost,
1998 ...normalizeInspectOptions(options),
1999 disableOplog: options['disable-oplog'],
2000 settingsFile: options.settings,
2001 testMetadata: global.testCommandMetadata,
2002 banner: options['show-test-app-path'] ? null : "Tests",
2003 buildOptions: buildOptions,
2004 rootUrl: process.env.ROOT_URL,
2005 mongoUrl: process.env.MONGO_URL,
2006 oplogUrl: process.env.MONGO_OPLOG_URL,
2007 mobileServerUrl: options.mobileServerUrl,
2008 once: options.once,
2009 noReleaseCheck: options['no-release-check'] || process.env.METEOR_NO_RELEASE_CHECK,
2010 recordPackageUsage: false,
2011 selenium: options.selenium,
2012 seleniumBrowser: options['selenium-browser'],
2013 cordovaRunner: options.cordovaRunner,
2014 // On the first run, we shouldn't display the delta between "no packages
2015 // in the temp app" and "all the packages we're testing". If we make
2016 // changes and reload, though, it's fine to display them.
2017 omitPackageMapDeltaDisplayOnFirstRun: true
2018 });
2019 }
2020};
2021
2022
2023

Callers 1

doTestCommandFunction · 0.85

Calls 2

normalizeInspectOptionsFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…