What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

hi, I again have problem with codeception. Problem is with autoloading. I can’t enable some helper

Options
USZB5JN4W
USZB5JN4W Posts: 112 🧑🏻‍🚀 - Cadet

hi, I again have problem with codeception. Problem is with autoloading. I can’t enable some helpers (for example this from screenshot). Till now I found, that it loads modules alphabetically and if module is loaded after imported module, then it throws error… This is for sure the rule for tests created by me (eg import \PyzAcceptanceTest\Shared\Testify\Helper\Environment in the PyzAcceptanceTest\Glue\ExampleModuleRestApi). Not sure how it works with modules from vendor (eg \SprykerTest\Glue\GlueApplication\Helper\GlueBootstrap).  Do you know how to deal with this?

Comments

  • U01A5ARAXP0
    U01A5ARAXP0 Posts: 119 🧑🏻‍🚀 - Cadet
    Options

    did you run codecept build after changing the file?

  • USZB5JN4W
    USZB5JN4W Posts: 112 🧑🏻‍🚀 - Cadet
    Options

    yes, it breaks in the build 🙂

  • USZB5JN4W
    USZB5JN4W Posts: 112 🧑🏻‍🚀 - Cadet
    Options

    but i’ve found, that in the newer glue module extra namespace is added. After adding it to project comopser it started to work

  • U01A5ARAXP0
    U01A5ARAXP0 Posts: 119 🧑🏻‍🚀 - Cadet
    Options

    cool, glad you found the issue