chore(e2e): re-enable Dart e2e tests (#2673)

This commit is contained in:
Patrice Chalin 2016-10-26 06:10:42 -07:00 committed by Kathy Walrath
parent e9d40ab2d7
commit 68e61f20d8
1 changed files with 4 additions and 2 deletions

View File

@ -364,11 +364,13 @@ function runProtractorAoT(appDir, outputFile) {
// fileName; then shut down the example. All protractor output is appended // fileName; then shut down the example. All protractor output is appended
// to the outputFile. // to the outputFile.
function runE2eDartTests(appDir, outputFile) { function runE2eDartTests(appDir, outputFile) {
var deployDir = path.resolve(path.join(appDir, 'build/web')); // Launch http server out of ts directory because all the config files are there.
var httpLaunchDir = path.resolve(appDir, '../ts');
var deployDir = path.resolve(appDir, 'build/web');
gutil.log('AppDir for Dart e2e: ' + appDir); gutil.log('AppDir for Dart e2e: ' + appDir);
gutil.log('Deploying from: ' + deployDir); gutil.log('Deploying from: ' + deployDir);
var appRunSpawnInfo = spawnExt('npm', ['run', 'http-server:e2e', '--', deployDir, '-s'], { cwd: EXAMPLES_PATH }); var appRunSpawnInfo = spawnExt('npm', ['run', 'http-server:e2e', '--', deployDir, '-s'], { cwd: httpLaunchDir });
if (!appRunSpawnInfo.proc.pid) { if (!appRunSpawnInfo.proc.pid) {
gutil.log('http-server failed to launch over ' + deployDir); gutil.log('http-server failed to launch over ' + deployDir);
return false; return false;