FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

yii api tests setup · Issue #6832 · Codeception/Codeception · GitHub

Repository navigation

yii api tests setup #6832

Open
Open

Description

Im trying to setup api testing and its just not working. I have no prior knowledge with codeception.

First issue - running ./vendor/bin/codecept g:suite api command generates a dir with a capital A

So the next command (php vendor/bin/codecept generate:cest api CreateUser) from api docs just doesnt work.

I spent ages to find a random solution - it should be ...Api CreateUser).

Now the second, after finally generating a test suite, i simply fail to run it:

I have no idea about this module and where to find it, i tried to rebuild the suits but it doesnt help.
Im using the Api.suite.yml config from the official guide. Im simply using a basic yii template, the guide doesnt state any additional configuration for api testing.

Activity

  1. vanyabrovary commented on Jun 23, 2025

    In my case, the decision was to call everything with a small letter.

    As example api instead of Api:

    Like that

    _data
    _output
    _support
    api
    unit
    api.suite.yml
    unit.suite.yml
    _bootstrap.php
    

    Tree

    tests
    ├── _support
    │   ├── ApiTester.php
    │   └── UnitTester.php
    ├── api
    │   └── ApiVisitCest.php
    ├── unit
    │   └── ExcelReaderTest.php
    ├── _bootstrap.php
    ├── api.suite.yml
    └── unit.suite.yml
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL