No commit activity in last 3 years
No release in over 3 years
Guard gem for codeception
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
~> 2.14

Runtime

~> 2.0
 Project Readme

Unmaintained

This repo is no longer being maintained by the original author.

Guard::Codeception Build Status Coverage Status

Guard::Codeception is an extension to the guard gem for the codeception testing framework

Installation

$ gem install guard-codeception 

Or add this line to your application's Gemfile:

gem 'guard-codeception'

And then execute:

$ bundle

Guardfle

The Guardfile can be generated from $ guard init codeception. By default Guard::Codeception will listen to any changes to PHP files only but you can alter the regex to your needs.

guard 'codeception' do
	watch(%r{^.*\.php$})
end

Configuration

The following options can be passed to Guard::Codeception

# run only specified suites 		default: [:acceptance, :functional, :unit]
:suites			=> [:acceptence, :custom_suite]

# run specific test group 			default: []
:groups			=> [:foo, :bar]

# enable codeception debug mode 	default: false
:debug 			=> false

# run tests when guard starts		default: false
:test_on_start 	=> false

# path to codecept					default 'codecept'
# if codecept is not avaliable via the PATH you can
# define the path to codecept here. ie: installing codeception
# via composer would be :codecept => 'vendor/bin/codecept'
:codecept		=> '/path/to/codecept'

# extra cli you wish to pass to codeceeption
# ie: config, json or xml output
:cli 			=> false

Usage

$ guard

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Test your changes with rspec
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

Testing

You need to pull codeception from composer under spec/fixtures/codeception with composer install --dev, then run rspec.

Author

Colby Swandale

Contributors

tmuntan1