2015-07-02 53 views

回答

6

1.在項目的根目錄下創建文件codeception.yml

2.過去在該文件下面:

include: 

  -  

paths: 

  log: log 

settings: 

  colors: true 

3.生成一些測試套件在其子目錄中:

codecept bootstrap /.../src/Domains/User --namespace user 

codecept bootstrap /.../src/Application/Cms --namespace cms 

4.通過在includes下包含測試套件的路徑來更新根目錄的codeception.yml

include: 

  - src/Domains/User 

  - src/Application/Cms 

5.產生一些測試

codecept generate:cept --config src/Domains/User unit testB 

codecept generate:cept --config src/Applications/Cms functional testA 

6.運行測試

codecept run 
相關問題