Skip to content

bootstrapAll/teardownAll pathes not working with run-multiple parallel #1346

Closed

Description

@vitaly87

What are you trying to achieve?

I am trying to run bootstrapAll/teardownAll with run-multiple parallel but getting error

What do you get instead?

throw new TypeError('Path must be a string. Received ' + inspect(path));
^

Activity

  1. elukoyanov commented on Nov 22, 2018

    @elukoyanov
    Contributor

    Looks like global variables, defined for run and several others commands happens in Codecept.init()

      init(dir) {
        this.initGlobals(dir);
        // initializing listeners
        Container.create(this.config, this.opts);
        this.runHooks();
      }
    ...
      initGlobals(dir) {
        global.codecept_dir = dir;
        global.output_dir = fsPath.resolve(dir, this.config.output);
    ...
    

    run-multiple does not call Codecept.init ,
    I think codecept_dir and output_dir definiton should be moved to separate method and called for each command before Codecept instance creation

  2. DavertMik commented on Sep 5, 2021

    @DavertMik
    Contributor

    Should be fixed with workers

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions