New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper _init() hook is called twice after upgrade to 1.1.7 #1036

apomortsev opened this Issue Apr 20, 2018 · 2 comments


None yet
2 participants

apomortsev commented Apr 20, 2018

What are you trying to achieve?

Initialize a helper.

What do you get instead?

Helper _init() hook is called twice, once before bootstrap and again after. Before upgrading it was only called once, before bootstrap. This change broke our suite initialization that relied on this particular sequence.


  • CodeceptJS version: 1.1.7
  • NodeJS Version: 8.2.1
  • Operating System: MacOS 10.12.6
  • WebDriverIO
  • Configuration file:
exports.config = {
  name: '...',
  mocha: {},
  tests: './{,+(bin|core|features|app_modules)/**/tests/acceptance/}*.acctests.js',
  output: './acceptanceScreenshots',
  timeout: 20000,
  // custom settings.
  customSettings: {
  helpers: {
    WebDriverIO: {
      url: appUrl,
      browser: 'chrome',
      windowSize: '1024x1000',
      restart: false,
      keepCookies: false,
      manualStart: true
    FileSystem: {},
    REST: {
      endpoint: apiUrl,
      resetHeaders: true,
    ApiDataFactory: {
      endpoint: apiUrl,
      cleanup: true,
      factories: {
      REST: {
        resetHeaders: true
    AppHelper: {
      require: './app_modules/acceptanceTest/appHelper.js'
  include: {
    // Misc app components/pages

Thank you.

@DavertMik DavertMik added the bug label Apr 21, 2018


This comment has been minimized.


DavertMik commented May 15, 2018

The bug exists but it was introduced before 1.1.7
Not sure from which version you upgraded...

DavertMik added a commit that referenced this issue May 15, 2018

DavertMik added a commit that referenced this issue May 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment