Git Product home page Git Product logo

laravel-elixir-behat's Introduction

Usage

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

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

require('laravel-elixir-behat');

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

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

Note: If you want your tests to execute upon file change, use the gulp tdd task

$ gulp tdd


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

baseDir

Defaulting to './tests/features/', this argument specifies the root directory to search for Behat-specific tests. If you would like to change the default path, you can override the 'baseDir' path to point to your features directory

mix.behat('./features', { debug: true });

options

If you need to pass any Behat-specific options (see gulp-behat docuumentation for complete list of available options), then you may pass an object as the second argument, like so:

mix.behat(null, { debug: true });

watchList

List of additional files to watch list when perform TDD command

...

var watchList = ['./resources/views/contacts/*.blade.php']; // watch contact blade files mix.behat(null, {}, watchList);

Changelog

  • 0.0.7 Changes

    • Added watchList parameter, providing option to extend default watch files
  • 0.0.6 Changes

    • Fixed issues related to using Behat under watch task
  • 0.0.5 Changes

    • Small refactoring
  • 0.0.4 Updated readme, providing example for overriding 'baseDir' property

  • 0.0.3 Minor tweaks, created npm package

    • Changed 'clear' flag to default to 'false' as it is not supported on all systems
  • 0.0.2 Initial Release

    • First public release

Credits

laravel-elixir-behat written by Mike Erickson

E-Mail: [email protected]

Twitter: @codedungeon

Website: codedungeon.org

laravel-elixir-behat's People

Contributors

mikeerickson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

laravel-elixir-behat's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.