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

Group Files with exact test not working with @example #3562

Closed
eXorus opened this issue Sep 29, 2016 · 0 comments
Closed

Group Files with exact test not working with @example #3562

eXorus opened this issue Sep 29, 2016 · 0 comments

Comments

@eXorus
Copy link
Member

@eXorus eXorus commented Sep 29, 2016

Hello,

Again one case that doesn't work with group files :(

api.suite.yml

groups:
    group3: tests/_data/group3

tests/api/welcomeCest.php

class welcomeCest
{
    /**
    * @example (hello="boy")
    * @example (hello="girl")
    */
    public function tryToTest(ApiTester $I, \Codeception\Example $example)
    {
    }
}

This one is NOT working

tests/_data/group3
tests/api/welcomeCest.php:tryToTest

./vendor/bin/codecept run api -g group3

Codeception PHP Testing Framework v2.2.5
Powered by PHPUnit 5.5.5 by Sebastian Bergmann and contributors.
[Groups] group3 

Api Tests (0) --------------------------------------------


Time: 77 ms, Memory: 9.50MB

No tests executed!

Codeception 2.2.5 is not able to execute a group file that exactly precise the test case with dataprovider.

This one is working

Without this exact test case it's working well

tests/_data/group3
tests/api/welcomeCest.php

./vendor/bin/codecept run api -g group3

Codeception PHP Testing Framework v2.2.5
Powered by PHPUnit 5.5.5 by Sebastian Bergmann and contributors.
[Groups] group3 

Api Tests (2) 
---------------------------------------------------------------
✔ welcomeCest: Try to test | "boy" (0.00s)
✔ welcomeCest: Try to test | "girl" (0.00s)
---------------------------------------------------------------


Time: 80 ms, Memory: 9.50MB

OK (2 tests, 0 assertions)

I will work on it to fix it.

Naktibalda added a commit that referenced this issue Oct 29, 2016
Naktibalda added a commit to Naktibalda/Codeception that referenced this issue Oct 30, 2016
Naktibalda added a commit to Naktibalda/Codeception that referenced this issue Oct 30, 2016
chris1312 pushed a commit to chris1312/Codeception that referenced this issue Jun 16, 2017
chris1312 pushed a commit to chris1312/Codeception that referenced this issue Jun 16, 2017
chris1312 pushed a commit to chris1312/Codeception that referenced this issue Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant