edno / codeception-gherkin-param Goto Github PK
View Code? Open in Web Editor NEWCodeception module for supporting parameter notation in Gherkin scenarios
Home Page: https://edno.github.io/codeception-gherkin-param
License: Apache License 2.0
Codeception module for supporting parameter notation in Gherkin scenarios
Home Page: https://edno.github.io/codeception-gherkin-param
License: Apache License 2.0
Composer dependencies are outdated:
VersionEye is no more and has to be replaced.
I have an error when I activate this extension
Warning: array_merge(): Expected parameter 2 to be an array, object given in /var/www/project/vendor/codeception/codeception/src/Codeception/Extension.php on line 29
Call Stack:
0.0003 412264 1. {main}() /var/www/project/vendor/codeception/codeception/codecept:0
0.0379 5796912 2. Codeception\Application->run() /var/www/project/vendor/codeception/codeception/codecept:43
0.0379 5796912 3. Codeception\Application->run() /var/www/project/vendor/codeception/codeception/src/Codeception/Application.php:108
0.0409 6030320 4. Codeception\Application->doRun() /var/www/project/vendor/symfony/console/Application.php:145
0.0411 6033824 5. Codeception\Application->doRunCommand() /var/www/project/vendor/symfony/console/Application.php:269
0.0412 6033824 6. Codeception\Command\Run->run() /var/www/project/vendor/symfony/console/Application.php:908
0.0415 6037208 7. Codeception\Command\Run->execute() /var/www/project/vendor/symfony/console/Command/Command.php:255
0.0492 7334784 8. Codeception\Command\Run->runSuites() /var/www/project/vendor/codeception/codeception/src/Codeception/Command/Run.php:390
0.0492 7334784 9. Codeception\Codecept->run() /var/www/project/vendor/codeception/codeception/src/Codeception/Command/Run.php:495
0.0508 7340528 10. Codeception\Codecept->runSuite() /var/www/project/vendor/codeception/codeception/src/Codeception/Codecept.php:159
0.0511 7380296 11. Codeception\SuiteManager->__construct() /var/www/project/vendor/codeception/codeception/src/Codeception/Codecept.php:187
0.0529 7671632 12. Codeception\Lib\ModuleContainer->create() /var/www/project/vendor/codeception/codeception/src/Codeception/SuiteManager.php:67
0.0534 7691080 13. Codeception\Lib\Di->instantiate() /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/ModuleContainer.php:92
0.0534 7691384 14. ReflectionClass->newInstanceArgs() /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/Di.php:84
0.0534 7691544 15. Codeception\Extension\GherkinParam->__construct() /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/Di.php:84
0.0534 7691544 16. array_merge() /var/www/project/vendor/codeception/codeception/src/Codeception/Extension.php:29
Fatal error: Uncaught Error: Access to undeclared static property: Codeception\Extension\GherkinParam::$excludeActions in /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/ModuleContainer.php on line 164
Error: Access to undeclared static property: Codeception\Extension\GherkinParam::$excludeActions in /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/ModuleContainer.php on line 164
Call Stack:
0.0003 412264 1. {main}() /var/www/project/vendor/codeception/codeception/codecept:0
0.0379 5796912 2. Codeception\Application->run() /var/www/project/vendor/codeception/codeception/codecept:43
0.0379 5796912 3. Codeception\Application->run() /var/www/project/vendor/codeception/codeception/src/Codeception/Application.php:108
0.0409 6030320 4. Codeception\Application->doRun() /var/www/project/vendor/symfony/console/Application.php:145
0.0411 6033824 5. Codeception\Application->doRunCommand() /var/www/project/vendor/symfony/console/Application.php:269
0.0412 6033824 6. Codeception\Command\Run->run() /var/www/project/vendor/symfony/console/Application.php:908
0.0415 6037208 7. Codeception\Command\Run->execute() /var/www/project/vendor/symfony/console/Command/Command.php:255
0.0492 7334784 8. Codeception\Command\Run->runSuites() /var/www/project/vendor/codeception/codeception/src/Codeception/Command/Run.php:390
0.0492 7334784 9. Codeception\Codecept->run() /var/www/project/vendor/codeception/codeception/src/Codeception/Command/Run.php:495
0.0508 7340528 10. Codeception\Codecept->runSuite() /var/www/project/vendor/codeception/codeception/src/Codeception/Codecept.php:159
0.0511 7380296 11. Codeception\SuiteManager->__construct() /var/www/project/vendor/codeception/codeception/src/Codeception/Codecept.php:187
0.0529 7671632 12. Codeception\Lib\ModuleContainer->create() /var/www/project/vendor/codeception/codeception/src/Codeception/SuiteManager.php:67
0.0539 7697600 13. Codeception\Lib\ModuleContainer->getActionsForModule() /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/ModuleContainer.php:99
0.0539 7700328 14. Codeception\Lib\ModuleContainer->includeMethodAsAction() /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/ModuleContainer.php:145
I'm using:
Tracking issue for:
Codeception 3.0 deprecated 'settings: bootstrap: _bootstrap.php' option
Details: http://phptest.club/t/bootstrap-deprecations-in-3-0/2196
Reported by Travis job: https://travis-ci.com/github/edno/codeception-gherkin-param/jobs/459175038
in src/GherkinParam.php, line 12
The class
RuntimeException
is declared but never used. You should remove theuse
statement.
* {{param}} will be replaced by the value of Fixtures::get('param')
*
*/
namespace Codeception\Extension;
use RuntimeException;
use Codeception\Util\Fixtures;
use Behat\Gherkin\Node\TableNode;
use ReflectionProperty;
class GherkinParam extends \Codeception\Platform\Extension
Posted from SensioLabsInsight
Package satooshi/php-coveralls is abandoned, you should avoid using it. Use php-coveralls/php-coveralls instead.
php is required both in require and require-dev, this can lead to unexpected behavior
Posted from SensioLabsInsight
Extend parameter support to Codeception config data
Given a configuration file .yml
"""
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 2048M
strict_xml: true
my_param:
- user: 'mylogin'
- password: 'mypassword'
"""
When I write a scenario using the with a parameter "{{settings['my_param']['user']}}"
Then the value of "{{settings['my_param']['user']}}" should be "mylogin"
License "Apache 2.0" is not a valid SPDX license identifier, see http://www.spdx.org/licenses/ if you use an open license.
If the software is closed-source, you may use "proprietary" as license.
Posted from SensioLabsInsight
This is breaking mutations tests with Infection.
Extend parameter support to array
Feature: Array parameter
In order to create dynamic Gherkin scenario
As a tester
I need to be able to retrieve array parameters
Scenario: Scenario using simple parameter
Given I have an array "test" with value "[1,2,3,4,5]"
Then I should see "{{test[0]}}" equals to "1"
Similarly for JSON objects, I should be able to compare them with a JSON string (gherkin snippets should implement the comparison logic, the module should only return the value of the param)
Interface \Codeception\Platform\Extension
to be replaced by \Codeception\Extension
Travis credit policy restrict the number of builds, even with a 1 run per month ๐คฏ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.