Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gherkin Scenarios not loading when specified in group file #5457

Closed
mozillalives opened this issue Mar 29, 2019 · 1 comment
Closed

Gherkin Scenarios not loading when specified in group file #5457

mozillalives opened this issue Mar 29, 2019 · 1 comment

Comments

@mozillalives
Copy link
Contributor

What are you trying to achieve?

Load a specific scenario from a group file. For example, let's say we have the group file tests/_groups/group1 and in that file the following.

tests/acceptance/refund.feature:Jeff returns a faulty microwave

What do you get instead?

No tests are found

Details

  • Codeception version: 2.5
  • PHP Version: 7.1
  • Operating System: MacOS
  • Installation type: Phar || Composer
  • List of installed packages (composer show)
behat/gherkin                      v4.6.0  Gherkin DSL parser for PHP 5.3
codeception/codeception            2.5.5   BDD-style testing framework
codeception/phpunit-wrapper        7.7.1   PHPUnit classes used by Codeception
codeception/stub                   2.1.0   Flexible Stub wrapper for PHPUnit's Mock Builder
doctrine/instantiator              1.2.0   A small, lightweight utility to instantiate objects in PHP without invoking their constructors
facebook/webdriver                 1.6.0   A PHP client for Selenium WebDriver
guzzlehttp/guzzle                  6.3.3   Guzzle is a PHP HTTP client library
guzzlehttp/promises                v1.3.1  Guzzle promises library
guzzlehttp/psr7                    1.5.2   PSR-7 message implementation that also provides common utility methods
myclabs/deep-copy                  1.8.1   Create deep copies (clones) of your objects
phar-io/manifest                   1.0.3   Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version                    2.0.1   Library for handling version information and constraints
phpdocumentor/reflection-common    1.0.1   Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock  4.3.0   With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.
phpdocumentor/type-resolver        0.4.0
phpspec/prophecy                   1.8.0   Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage          6.1.4   Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator          2.0.2   FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template          1.2.1   Simple template engine.
phpunit/php-timer                  2.1.1   Utility class for timing
phpunit/php-token-stream           3.0.1   Wrapper around PHP's tokenizer extension.
phpunit/phpunit                    7.5.8   The PHP Unit Testing framework.
psr/http-message                   1.0.1   Common interface for HTTP messages
ralouphie/getallheaders            2.0.5   A polyfill for getallheaders.
sebastian/code-unit-reverse-lookup 1.0.1   Looks up which function or method a line of code belongs to
sebastian/comparator               3.0.2   Provides the functionality to compare PHP values for equality
sebastian/diff                     3.0.2   Diff implementation
sebastian/environment              4.1.0   Provides functionality to handle HHVM/PHP environments
sebastian/exporter                 3.1.0   Provides the functionality to export PHP variables for visualization
sebastian/global-state             2.0.0   Snapshotting of global state
sebastian/object-enumerator        3.0.3   Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector         1.1.1   Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context        3.0.0   Provides functionality to recursively process PHP variables
sebastian/resource-operations      2.0.1   Provides a list of PHP built-in functions that operate on resources
sebastian/version                  2.0.1   Library that helps with managing the version number of Git-hosted PHP projects
symfony/browser-kit                v4.2.4  Symfony BrowserKit Component
symfony/console                    v4.2.4  Symfony Console Component
symfony/contracts                  v1.0.2  A set of abstractions extracted out of the Symfony components
symfony/css-selector               v4.2.4  Symfony CssSelector Component
symfony/dom-crawler                v4.2.4  Symfony DomCrawler Component
symfony/event-dispatcher           v4.2.4  Symfony EventDispatcher Component
symfony/finder                     v4.2.4  Symfony Finder Component
symfony/polyfill-ctype             v1.11.0 Symfony polyfill for ctype functions
symfony/polyfill-mbstring          v1.11.0 Symfony polyfill for the Mbstring extension
symfony/process                    v4.2.4  Symfony Process Component
symfony/yaml                       v4.2.4  Symfony Yaml Component
theseer/tokenizer                  1.1.0   A small library for converting tokenized PHP source code into XML and potentially other formats
webmozart/assert                   1.4.0   Assertions to validate method input/output with nice error messages.
  • Suite configuration:
paths:
    tests: tests
    output: tests/_output
    data: tests/_data
    support: tests/_support
    envs: tests/_envs
actor_suffix: Tester
extensions:
    enabled:
        - Codeception\Extension\RunFailed
settings:
    colors: true
    memory_limit: 1024M
    shuffle: true
gherkin:
    contexts:
        default:
            - GherkinSteps

A demonstration of this issue can be seen in this sample repository https://github.com/mozillalives/codeception-gherkin-issue

DavertMik pushed a commit that referenced this issue Apr 5, 2019
…ile (#5458)

* proposed solution for #5457 gherkin scenarios not loaded from group file

* testing for getMetaData method before calling it in GroupManager

* reformatting if statement to appease nitpick

* adding tests for #5457
@mozillalives
Copy link
Contributor Author

I'm going to close this issue since the PR for this has been merged

DavertMik pushed a commit that referenced this issue Apr 23, 2019
* Proposed solution for #5457 gherkin scenarios not loaded from group file (#5458)

* proposed solution for #5457 gherkin scenarios not loaded from group file

* testing for getMetaData method before calling it in GroupManager

* reformatting if statement to appease nitpick

* adding tests for #5457

* Update LOCAL_FILE constant for new version of phpseclib (#5461)

* Using button formaction attr in proceedSubmitForm method (#5440)

* Using button formaction attr in proceedSubmitForm method (AcceptanceTesterActions::submitForm)

* Update InnerBrowser.php

* Avoid removing required fields in cookies. (#5470)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant