All Projects → JeffreyWay → laravel-elixir-codeception

JeffreyWay / laravel-elixir-codeception

Licence: other
Laravel Elixir wrapper for Codeception

Programming Languages

javascript
184084 projects - #8 most used programming language

Usage

This is a simple Codeception wrapper around Laravel Elixir. Add it to your Elixir-enhanced Gulpfile, like so:

var elixir = require('laravel-elixir');

require('laravel-elixir-codeception');

elixir(function(mix) {
   mix.codeception();
});

This will scan your ./tests/ directory, as well as any PHP classes in your 'app' folder for changes, and trigger your Codeception suite.


You may pass two arguments to the codeception() method.

baseDir

Defaulting to './tests', this argument specifies the root directory to search for Codeception-specific tests.

options

If you need to pass any Codeception-specific options, then you may pass an object as the second argument, like so:

mix.codeception(null, { flags: '--report' });

Or, maybe you only want to trigger your "functional" suite.

mix.codeception(null, { testSuite: 'functional' });
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].