E2e testing doing nothing since upgrade to ng7










1















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.



E2e output



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,
;









share|improve this question




























    1















    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.



    E2e output



    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,
    ;









    share|improve this question


























      1












      1








      1








      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.



      E2e output



      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,
      ;









      share|improve this question
















      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.



      E2e output



      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 0:23









      HDJEMAI

      4,434144059




      4,434144059










      asked Nov 14 '18 at 20:01









      AarmoraAarmora

      6761923




      6761923






















          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
          );



          );













          draft saved

          draft discarded


















          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















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

          Museum of Modern and Contemporary Art of Trento and Rovereto