Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What is going on with this article?
@mizuki_r

CodeCeption入門

More than 1 year has passed since last update.

よく忘れてググるのでメモっとく

CodeCeption

PHPのテスティングフレームワーク。
単体テスト、機能テスト、受け入れテストを区別しつつ、CodeCeptionで完結できる。

  • unit ... 単体テスト
  • functional ... 機能テスト
  • acceptance ... 受け入れテスト

テストを作成

> php vendor/bin/codecept generate:cest unit User/Register

テストを実行

すべてのテストを実行

> php vendor/bin/codecept run

任意の区分のテストを実行

> php vendor/bin/codecept run unit

任意のディレクトリのテストを実行

> php vendor/bin/codecept run unit User/

任意のテストを実行

> php vendor/bin/codecept run unit User/RegisterCest
2
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
mizuki_r
bengo4
「専門家をもっと身近に」を理念として、人々と専門家をつなぐポータルサイト「弁護士ドットコム」「弁護士ドットコムニュース」「税理士ドットコム」を提供。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
2
Help us understand the problem. What is going on with this article?