@codeception

动态 列表
@rui_sen

YII2 + Codeception +Xdebug 進行接口API測試及單元測試的實踐

以前用測試接口就是用PostMan + PHPStorm + Xdebug 進行調試,具體就是配置好PHPStorm+ Xdebug後,用PostMan發送請求時,增加參數:XDEBUG_SESSION_START=PHPSTORM。如下圖: PostMan+Xdebug的方式測試基本也可以了,但是測試粒度還是有點大,每次測試都要正兒八經用 postman發一次請求來驗證結果,稍顯麻煩。

rui_sen 头像

@rui_sen

昵称 Rui_sen