Skip to content

yii api tests setup #6832

@HellYeahOmg

Description

@HellYeahOmg

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

Image

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

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:
Image

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.

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