Skip to content

bootstrap is not loaded first, dataProviders are called before bootstrap #862

@jordanqq

Description

@jordanqq

lets say i have my codeception.yml test path to "test" and look for bootstrap in "framework/_boostrap.php". and i have one test suite called "unit".

my files will be laid out like this:

test/framework/_bootstrap.php
test/unit/framework/_bootstrap.php
test/unit/..../.../mytestfile.php

Codeception will load them in this order:

1.  test/framework/_bootstrap.php
2. test/unit/..../.../mytestfile.php
3. test/unit/framework/_bootstrap.php

Additionally, if I declare any dataProvider methods in the test file, mytestfile.php, those methods will be called before test/unit/framework/_bootstrap.php is loaded.

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