lundi 24 août 2015

Codeception, configure suite test path

I'm having a problem with Codeception.

I have a project that involving team, and I want to implement test with codeception and this test should work for everyone in my team.

currently I setup the test for my own-purpose, and here is the example configuration of it:

class_name: FunctionalTester
modules:
    enabled:
        # add framework module here
        - Yii1
        - \Helper\Functional
        - PhpBrowser
        - Db
    config:
        Yii1:
            appPath: '/Volumes/disk0s4/www/new-proj/trunk/test.php'
            url: 'http://ift.tt/1U1Qcnv'
        PhpBrowser:
            url: 'https://my.proj.didin/'
        Db:
            dsn: 'mysql:host=127.0.0.1;dbname=test-proj-new'
            user: 'root'
            password: 'root'
            dump: ''

According to suite-configuration above, under config > Yii1 > appPath: the path is fixed, and it working well only for me, but unfortunately this configuration won't work for other people in my team. So other people should have self-configuration file for this, but keep to run the same test-file.

So, do you have any idea to handle the kind of this situation? I really appreciate all of your input and thanks a lot for attention.

Aucun commentaire:

Enregistrer un commentaire