E2e testing doing nothing since upgrade to ng7
We just completed our upgrade to Angular 7 and since then, it does nothing any time we try to run e2e tests. It doesn't throw any errors, just doesn't do anything.
I tried booting up a completely new angular project and e2e tests work fine there. I copied over their angular.json file and just replaced the pathing and it does the same thing.
Everything else works perfectly. Unit tests, serve, and aot builds.
Angular.json:
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects":
"lscloud-ui":
"root": "",
"sourceRoot": "source",
"projectType": "application",
"architect":
"build":
"builder": "@angular-devkit/build-angular:browser",
"options":
"outputPath": "build/build",
"index": "source/index.html",
"main": "source/main.ts",
"tsConfig": "source/tsconfig.app.json",
"showCircularDependencies": false,
"polyfills": "source/polyfills.ts",
"assets": [
"source/assets",
"source/favicon.ico"
],
"styles": ,
"scripts":
,
"configurations":
"production":
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
"replace": "source/environments/environment.ts",
"with": "source/environments/environment.prod.ts"
]
,
"serve":
"builder": "@angular-devkit/build-angular:dev-server",
"options":
"browserTarget": "lscloud-ui:build"
,
"configurations":
"production":
"browserTarget": "lscloud-ui:build:production"
,
"extract-i18n":
"builder": "@angular-devkit/build-angular:extract-i18n",
"options":
"browserTarget": "lscloud-ui:build"
,
"test":
"builder": "@angular-devkit/build-angular:karma",
"options":
"main": "source/test.ts",
"karmaConfig": "./karma.conf.js",
"polyfills": "source/polyfills.ts",
"tsConfig": "source/tsconfig.spec.json",
"scripts": ,
"styles": ,
"assets": [
"source/assets",
"source/favicon.ico"
]
,
"lint":
"builder": "@angular-devkit/build-angular:tslint",
"options":
"tsConfig": [
"source/tsconfig.app.json"
],
"exclude": [
"**/node_modules/**"
]
,
"lscloud-ui-e2e":
"root": "",
"sourceRoot": "",
"projectType": "application",
"architect":
"e2e":
"builder": "@angular-devkit/build-angular:protractor",
"options":
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "lscloud-ui:serve",
"port": 49152
,
"configurations":
"production":
"devServerTarget": "lscloud-ui:serve:production"
,
"lint":
"builder": "@angular-devkit/build-angular:tslint",
"options":
"tsConfig": [
"e2e/tsconfig.e2e.json"
],
"exclude":
,
"defaultProject": "lscloud-ui",
"schematics":
"@schematics/angular:component":
"prefix": "",
"styleext": "css"
,
"@schematics/angular:directive":
"prefix": ""
protractor.conf.js
const SpecReporter = require('jasmine-spec-reporter');
exports.config =
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
capabilities:
'browserName': 'chrome'
,
directConnect: true,
baseUrl: 'http://localhost:8081/',
framework: 'jasmine',
// capabilities:
// 'browserName': 'chrome',
// 'chromeOptions':
// 'args': [ "--headless", "--disable-gpu", "--window-size=800x600" ]
//
// ,
jasmineNodeOpts:
showColors: true,
defaultTimeoutInterval: 30000,
print: function ()
,
onPrepare()
browser.manage().window().setSize(1920, 1080);
browser.ignoreSynchronization = true;
require('ts-node').register(
project: 'e2e/tsconfig.e2e.json'
);
jasmine.getEnv().addReporter(new SpecReporter( spec: displayStacktrace: true ));
,
// seleniumAddress: 'http://localhost:4444/wd/hub',
// seleniumSessionId: '82d468f7f7336afd5727cd8682c252eb',
SELENIUM_PROMISE_MANAGER: false,
;
angular typescript angular7 angular-e2e
add a comment |
We just completed our upgrade to Angular 7 and since then, it does nothing any time we try to run e2e tests. It doesn't throw any errors, just doesn't do anything.
I tried booting up a completely new angular project and e2e tests work fine there. I copied over their angular.json file and just replaced the pathing and it does the same thing.
Everything else works perfectly. Unit tests, serve, and aot builds.
Angular.json:
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects":
"lscloud-ui":
"root": "",
"sourceRoot": "source",
"projectType": "application",
"architect":
"build":
"builder": "@angular-devkit/build-angular:browser",
"options":
"outputPath": "build/build",
"index": "source/index.html",
"main": "source/main.ts",
"tsConfig": "source/tsconfig.app.json",
"showCircularDependencies": false,
"polyfills": "source/polyfills.ts",
"assets": [
"source/assets",
"source/favicon.ico"
],
"styles": ,
"scripts":
,
"configurations":
"production":
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
"replace": "source/environments/environment.ts",
"with": "source/environments/environment.prod.ts"
]
,
"serve":
"builder": "@angular-devkit/build-angular:dev-server",
"options":
"browserTarget": "lscloud-ui:build"
,
"configurations":
"production":
"browserTarget": "lscloud-ui:build:production"
,
"extract-i18n":
"builder": "@angular-devkit/build-angular:extract-i18n",
"options":
"browserTarget": "lscloud-ui:build"
,
"test":
"builder": "@angular-devkit/build-angular:karma",
"options":
"main": "source/test.ts",
"karmaConfig": "./karma.conf.js",
"polyfills": "source/polyfills.ts",
"tsConfig": "source/tsconfig.spec.json",
"scripts": ,
"styles": ,
"assets": [
"source/assets",
"source/favicon.ico"
]
,
"lint":
"builder": "@angular-devkit/build-angular:tslint",
"options":
"tsConfig": [
"source/tsconfig.app.json"
],
"exclude": [
"**/node_modules/**"
]
,
"lscloud-ui-e2e":
"root": "",
"sourceRoot": "",
"projectType": "application",
"architect":
"e2e":
"builder": "@angular-devkit/build-angular:protractor",
"options":
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "lscloud-ui:serve",
"port": 49152
,
"configurations":
"production":
"devServerTarget": "lscloud-ui:serve:production"
,
"lint":
"builder": "@angular-devkit/build-angular:tslint",
"options":
"tsConfig": [
"e2e/tsconfig.e2e.json"
],
"exclude":
,
"defaultProject": "lscloud-ui",
"schematics":
"@schematics/angular:component":
"prefix": "",
"styleext": "css"
,
"@schematics/angular:directive":
"prefix": ""
protractor.conf.js
const SpecReporter = require('jasmine-spec-reporter');
exports.config =
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
capabilities:
'browserName': 'chrome'
,
directConnect: true,
baseUrl: 'http://localhost:8081/',
framework: 'jasmine',
// capabilities:
// 'browserName': 'chrome',
// 'chromeOptions':
// 'args': [ "--headless", "--disable-gpu", "--window-size=800x600" ]
//
// ,
jasmineNodeOpts:
showColors: true,
defaultTimeoutInterval: 30000,
print: function ()
,
onPrepare()
browser.manage().window().setSize(1920, 1080);
browser.ignoreSynchronization = true;
require('ts-node').register(
project: 'e2e/tsconfig.e2e.json'
);
jasmine.getEnv().addReporter(new SpecReporter( spec: displayStacktrace: true ));
,
// seleniumAddress: 'http://localhost:4444/wd/hub',
// seleniumSessionId: '82d468f7f7336afd5727cd8682c252eb',
SELENIUM_PROMISE_MANAGER: false,
;
angular typescript angular7 angular-e2e
add a comment |
We just completed our upgrade to Angular 7 and since then, it does nothing any time we try to run e2e tests. It doesn't throw any errors, just doesn't do anything.
I tried booting up a completely new angular project and e2e tests work fine there. I copied over their angular.json file and just replaced the pathing and it does the same thing.
Everything else works perfectly. Unit tests, serve, and aot builds.
Angular.json:
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects":
"lscloud-ui":
"root": "",
"sourceRoot": "source",
"projectType": "application",
"architect":
"build":
"builder": "@angular-devkit/build-angular:browser",
"options":
"outputPath": "build/build",
"index": "source/index.html",
"main": "source/main.ts",
"tsConfig": "source/tsconfig.app.json",
"showCircularDependencies": false,
"polyfills": "source/polyfills.ts",
"assets": [
"source/assets",
"source/favicon.ico"
],
"styles": ,
"scripts":
,
"configurations":
"production":
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
"replace": "source/environments/environment.ts",
"with": "source/environments/environment.prod.ts"
]
,
"serve":
"builder": "@angular-devkit/build-angular:dev-server",
"options":
"browserTarget": "lscloud-ui:build"
,
"configurations":
"production":
"browserTarget": "lscloud-ui:build:production"
,
"extract-i18n":
"builder": "@angular-devkit/build-angular:extract-i18n",
"options":
"browserTarget": "lscloud-ui:build"
,
"test":
"builder": "@angular-devkit/build-angular:karma",
"options":
"main": "source/test.ts",
"karmaConfig": "./karma.conf.js",
"polyfills": "source/polyfills.ts",
"tsConfig": "source/tsconfig.spec.json",
"scripts": ,
"styles": ,
"assets": [
"source/assets",
"source/favicon.ico"
]
,
"lint":
"builder": "@angular-devkit/build-angular:tslint",
"options":
"tsConfig": [
"source/tsconfig.app.json"
],
"exclude": [
"**/node_modules/**"
]
,
"lscloud-ui-e2e":
"root": "",
"sourceRoot": "",
"projectType": "application",
"architect":
"e2e":
"builder": "@angular-devkit/build-angular:protractor",
"options":
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "lscloud-ui:serve",
"port": 49152
,
"configurations":
"production":
"devServerTarget": "lscloud-ui:serve:production"
,
"lint":
"builder": "@angular-devkit/build-angular:tslint",
"options":
"tsConfig": [
"e2e/tsconfig.e2e.json"
],
"exclude":
,
"defaultProject": "lscloud-ui",
"schematics":
"@schematics/angular:component":
"prefix": "",
"styleext": "css"
,
"@schematics/angular:directive":
"prefix": ""
protractor.conf.js
const SpecReporter = require('jasmine-spec-reporter');
exports.config =
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
capabilities:
'browserName': 'chrome'
,
directConnect: true,
baseUrl: 'http://localhost:8081/',
framework: 'jasmine',
// capabilities:
// 'browserName': 'chrome',
// 'chromeOptions':
// 'args': [ "--headless", "--disable-gpu", "--window-size=800x600" ]
//
// ,
jasmineNodeOpts:
showColors: true,
defaultTimeoutInterval: 30000,
print: function ()
,
onPrepare()
browser.manage().window().setSize(1920, 1080);
browser.ignoreSynchronization = true;
require('ts-node').register(
project: 'e2e/tsconfig.e2e.json'
);
jasmine.getEnv().addReporter(new SpecReporter( spec: displayStacktrace: true ));
,
// seleniumAddress: 'http://localhost:4444/wd/hub',
// seleniumSessionId: '82d468f7f7336afd5727cd8682c252eb',
SELENIUM_PROMISE_MANAGER: false,
;
angular typescript angular7 angular-e2e
We just completed our upgrade to Angular 7 and since then, it does nothing any time we try to run e2e tests. It doesn't throw any errors, just doesn't do anything.
I tried booting up a completely new angular project and e2e tests work fine there. I copied over their angular.json file and just replaced the pathing and it does the same thing.
Everything else works perfectly. Unit tests, serve, and aot builds.
Angular.json:
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects":
"lscloud-ui":
"root": "",
"sourceRoot": "source",
"projectType": "application",
"architect":
"build":
"builder": "@angular-devkit/build-angular:browser",
"options":
"outputPath": "build/build",
"index": "source/index.html",
"main": "source/main.ts",
"tsConfig": "source/tsconfig.app.json",
"showCircularDependencies": false,
"polyfills": "source/polyfills.ts",
"assets": [
"source/assets",
"source/favicon.ico"
],
"styles": ,
"scripts":
,
"configurations":
"production":
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
"replace": "source/environments/environment.ts",
"with": "source/environments/environment.prod.ts"
]
,
"serve":
"builder": "@angular-devkit/build-angular:dev-server",
"options":
"browserTarget": "lscloud-ui:build"
,
"configurations":
"production":
"browserTarget": "lscloud-ui:build:production"
,
"extract-i18n":
"builder": "@angular-devkit/build-angular:extract-i18n",
"options":
"browserTarget": "lscloud-ui:build"
,
"test":
"builder": "@angular-devkit/build-angular:karma",
"options":
"main": "source/test.ts",
"karmaConfig": "./karma.conf.js",
"polyfills": "source/polyfills.ts",
"tsConfig": "source/tsconfig.spec.json",
"scripts": ,
"styles": ,
"assets": [
"source/assets",
"source/favicon.ico"
]
,
"lint":
"builder": "@angular-devkit/build-angular:tslint",
"options":
"tsConfig": [
"source/tsconfig.app.json"
],
"exclude": [
"**/node_modules/**"
]
,
"lscloud-ui-e2e":
"root": "",
"sourceRoot": "",
"projectType": "application",
"architect":
"e2e":
"builder": "@angular-devkit/build-angular:protractor",
"options":
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "lscloud-ui:serve",
"port": 49152
,
"configurations":
"production":
"devServerTarget": "lscloud-ui:serve:production"
,
"lint":
"builder": "@angular-devkit/build-angular:tslint",
"options":
"tsConfig": [
"e2e/tsconfig.e2e.json"
],
"exclude":
,
"defaultProject": "lscloud-ui",
"schematics":
"@schematics/angular:component":
"prefix": "",
"styleext": "css"
,
"@schematics/angular:directive":
"prefix": ""
protractor.conf.js
const SpecReporter = require('jasmine-spec-reporter');
exports.config =
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
capabilities:
'browserName': 'chrome'
,
directConnect: true,
baseUrl: 'http://localhost:8081/',
framework: 'jasmine',
// capabilities:
// 'browserName': 'chrome',
// 'chromeOptions':
// 'args': [ "--headless", "--disable-gpu", "--window-size=800x600" ]
//
// ,
jasmineNodeOpts:
showColors: true,
defaultTimeoutInterval: 30000,
print: function ()
,
onPrepare()
browser.manage().window().setSize(1920, 1080);
browser.ignoreSynchronization = true;
require('ts-node').register(
project: 'e2e/tsconfig.e2e.json'
);
jasmine.getEnv().addReporter(new SpecReporter( spec: displayStacktrace: true ));
,
// seleniumAddress: 'http://localhost:4444/wd/hub',
// seleniumSessionId: '82d468f7f7336afd5727cd8682c252eb',
SELENIUM_PROMISE_MANAGER: false,
;
angular typescript angular7 angular-e2e
angular typescript angular7 angular-e2e
edited Nov 15 '18 at 0:23
HDJEMAI
4,434144059
4,434144059
asked Nov 14 '18 at 20:01
AarmoraAarmora
6761923
6761923
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53307946%2fe2e-testing-doing-nothing-since-upgrade-to-ng7%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53307946%2fe2e-testing-doing-nothing-since-upgrade-to-ng7%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown