added support for automatic show on failures

This commit is contained in:
everzet
2012-09-10 20:20:10 +02:00
parent 0b8a4d7d10
commit 9e2c34cbd0
6 changed files with 237 additions and 76 deletions

View File

@@ -114,6 +114,10 @@ class Extension implements ExtensionInterface
$minkReflection = new \ReflectionClass('Behat\Mink\Mink');
$minkLibPath = realpath(dirname($minkReflection->getFilename()) . '/../../../');
$container->setParameter('mink.paths.lib', $minkLibPath);
if ($config['show_auto']) {
$loader->load('failure_show_listener.xml');
}
}
/**
@@ -136,6 +140,9 @@ class Extension implements ExtensionInterface
scalarNode('files_path')->
defaultValue(isset($config['files_path']) ? $config['files_path'] : null)->
end()->
booleanNode('show_auto')->
defaultValue(false)->
end()->
scalarNode('show_cmd')->
defaultValue(isset($config['show_cmd']) ? $config['show_cmd'] : null)->
end()->