If Only I Knew That!

Webby things that could save you time

Codeception with Laravel 4

with one comment

To use codeception with Laravel 4

Install via composer

composer require "codeception/codeception:@stable"

Update composer if you add the require manually

composer update

Bootstrap codeception with the app directory path

codecept bootstrap app

Set the PhpBrowser url config in app/tests/acceptance.suite.yml

class_name:WebGuy modules:
        - PhpBrowser
        - WebHelper
            url: 'http://localhost:8888'

Move the codeception.yml file to the root directory otherwise you have to use the -c option to set the path on each call

mv app/codeception.yml codeception.yml

Adjust the paths in codeception.yml to reference app/tests

    tests: app/tests
    log: app/tests/_log
    data: app/tests/_data
    helpers: app/tests/_helpers

Test away

Written by admin

July 30th, 2013 at 8:30 pm

Posted in Laravel,PHP

One Response to 'Codeception with Laravel 4'

Subscribe to comments with RSS or TrackBack to 'Codeception with Laravel 4'.

  1. It works! Thank you.


    5 Sep 13 at 12:53 am

Leave a Reply

Powered by CDN Rewrites