0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

自動化テストをできるようになろう

Posted at

自動化テストとは

何か、ソースコードに対して変更をしたときには、自動的にテストしてくれるような設定をしておこう

というもの

自動化テストの極意

では、どのような時に、自動化テストを書くのか

巷では、テスト駆動開発、一括テストなど耳にするが、テストはアプリのコードよりも先に書いたほうがいいか、後に書いたほうがいいか、

私の見解は、アプリの挙動が決まっていて、動作させたい機能がはっきりしてる場合は、そのコードを書くべきと思う。

テスト駆動開発のサイクル

①失敗するテストを最初に書く
②次にアプリケーションのコードを書いて成功させる(パスさせる)
③必要ならリファクタリングする

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?