&tag(Railsテスティングガイド);

目次[edit]

関連ページ[edit]

参考情報[edit]

1 Railsアプリケーションでテストを作成しなければならない理由[edit]

2 テストを導入する[edit]

2.1 Rails Sets up for Testing from the Word Go[edit]

2.2 The Test Environment[edit]

2.3 Rails meets Minitest[edit]

2.4 Available Assertions[edit]

2.5 Rails Specific Assertions[edit]

2.6 A Brief Note About Test Cases[edit]

2.7 The Rails Test Runner[edit]

3 The Test Database[edit]

3.1 Maintaining the test database schema[edit]

3.2 The Low-Down on Fixtures[edit]

4 Model Testing[edit]

5 System Testing[edit]

5.1 Changing the default settings[edit]

5.2 Screenshot Helper[edit]

5.3 Implementing a system test[edit]

★chromedriverが存在しないと実行できない。macOSの場合「brew cask install chromedriver」でインストール可能。

6 Integration Testing[edit]

6.1 Helpers Available for Integration Tests[edit]

6.2 Implementing an integration test[edit]

7 Functional Tests for Your Controllers[edit]

7.1 What to include in your Functional Tests[edit]

7.2 Available Request Types for Functional Tests[edit]

7.3 Testing XHR (AJAX) requests[edit]

7.4 The Three Hashes of the Apocalypse[edit]

7.5 Instance Variables Available[edit]

7.6 Setting Headers and CGI variables[edit]

7.7 Testing flash notices[edit]

7.8 Putting it together[edit]

7.9 Test helpers[edit]

8 Testing Routes[edit]

9 Testing Views[edit]

10 Testing Helpers[edit]

11 Testing Your Mailers[edit]

11.1 Keeping the Postman in Check[edit]

11.2 Unit Testing[edit]

11.3 Functional Testing[edit]

12 Testing Jobs[edit]

12.1 A Basic Test Case[edit]

12.2 Custom Assertions And Testing Jobs Inside Other Components[edit]

13 Additional Testing Resources[edit]

13.1 Testing Time-Dependent Code[edit]


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-04-11 (月) 15:28:16