Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jimmy B.
    @jimmybrancaccio
    Wait so the Codeception image here (https://hub.docker.com/r/codeception/codeception) uses 3.x ?
    Because of this I think in their composer.json - "codeception/stub": "^2.0 | ^3.0" ?
    Rostislav Rudometov
    @rostislaw9

    Wait so the Codeception image here (https://hub.docker.com/r/codeception/codeception) uses 3.x ?

    yup, that's the exact problem i was talking 'bout

    ... OK, there's a new image on dockerhub, at https://hub.docker.com/repository/docker/yourpropertyexpert/codeception4

    can't wait to ckeckout your image, Mark
    i'll let you know once i try it
    thanks!

    Mark Harrison
    @yourpropertyexpert
    @jimmybrancaccio - it was a lot fiddlier to do than a Codeception 3 image because of the way that Codeception 4 is built of separate modules.
    When you installed C3, it installed pretty much everything you needed.
    With C4, when you install it, it just installs a "core."
    When you run (a script it includes) it analyses your code, works out what other modules you need to run, and then updates your composer.json to include them JUST FOR THAT PROJECT.... and then relies on composer.
    This has many advantages:
    • Easier for them to maintain the codebase, since modules can be released independently
    • Easier to customise what you have per project
    ... but the downside is stuff like "docker when used in a CI system", where you want an image that contains everything you'll need...
    It may be that there needs to be a "full image", as part of the official project, that includes ALL the possible modules, and is updated weekly anyway..
    ... but that's an extra workload for the project team.
    Mark Harrison
    @yourpropertyexpert
    UPDATE: As of about 10 minutes ago, the yourpropertyexpert/codeception4:latest build now includes the REST module
    Jimmy B.
    @jimmybrancaccio
    Nice nice, very cool. I still only have my one repo with Drone CI that puts it through Codeception and Sonarqube. I guess I haven't realized the Docker container for Codeception FROM Codeception was running v3. 😩
    Rostislav Rudometov
    @rostislaw9

    @yourpropertyexpert need some help, Mark
    trying to run your image with this:

    docker run -v ${PWD}:/project --user $(id -u):$(id -g) yourpropertyexpert/codeception4:latest run

    but it says
    /usr/local/bin/docker-php-entrypoint: 9: exec: run: not found

    Mark Harrison
    @yourpropertyexpert
    Run is an argument to the codeception executable...
    you need to give a command to the SHELL
    So try something like "php /var/www/vendor/bin/codecept run" ... or possibly just "codecept run" instead of the "run".
    My docker image is an image that allows codeception to be run... not one that auto-executes it.
    Rostislav Rudometov
    @rostislaw9
    does anybody know how to define a delay before EVERY test command execution?
    i've got a testing environment which sometimes acts strangely under stress
    dlike to know if i can add say 1-5 ms between commands and see if there r any changes
    Altyn
    @altmurzilka
    Where else can i ask questions related to this framework? Seems like this community is dead.
    3 replies
    Meghrikyan
    @Meghrikyan
    in codeception5 the --json was removed. is there any way to add this back via "--ext ..."?
    Meghrikyan
    @Meghrikyan
    In v5, option --format is available in the doc, but returns error: The "--format" option does not exist