H
H
hollanditkzn2017-06-15 16:49:30
Yii
hollanditkzn, 2017-06-15 16:49:30

How to set up codeception testing?

I have a stupor with codeception. It is not clear whether it was established or not. When the console says

codecept -v
"codecept" is not an internal or external
command, operable program, or batch file.

But it is not clear how to start even testing. In yii2 composer.json, this is what is available
{
    "name": "yiisoft/yii2-app-advanced",
    "description": "Yii 2 Advanced Project Template",
    "keywords": ["yii2", "framework", "advanced", "project template"],
    "homepage": "http://www.yiiframework.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "stable",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "~2.0.6",
        "yiisoft/yii2-bootstrap": "~2.0.0",
        "yiisoft/yii2-swiftmailer": "~2.0.0",
        "2amigos/yii2-date-picker-widget": "~1.0",
        "mdmsoft/yii2-admin": "~2.0",
        "unclead/yii2-multiple-input": "~2.0",
        "kartik-v/yii2-grid": "@dev",
        "kartik-v/yii2-mpdf": "^1.0",
        "kartik-v/yii2-detail-view": "*",
        "kartik-v/yii2-label-inplace": "^1.2",
        "kartik-v/yii2-money": "^1.2",
        "codeception/specify": "*",
        "codeception/verify": "*"
    },
    "require-dev": {
        "yiisoft/yii2-debug": "~2.0.0",
        "yiisoft/yii2-gii": "~2.0.0",
        "yiisoft/yii2-faker": "~2.0.0",
        "codeception/base": "^2.2.3",
        "ext-xsl": "*"
    },
    "config": {
        "process-timeout": 1800
    },
    "extra": {
        "asset-installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }
    },
    "scripts": {
        "post-install-cmd": "php init --env=Development --overwrite=n"
    }
}

Help to deal with testing or throw to read, relevant. Because I found on the Internet it does not help and it is not clear what is where

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2017-06-15
@hollanditkzn

I recommend that you spend a small amount of time and watch this video, it seems that everything is clearly chewed in it

S
Sergey Desh, 2022-02-16
@serdesh

I'll leave it here, because I also had a problem with running tests, I was looking for an answer for a long time.
In my case, in the OpenServer console, from the root folder of the project (Basic), run the command
%cd%/vendor/bin/codecept run

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question