Merge branch 'docs-testing-n-1-request-sepcs' into 'master'

Docs: Require request specs when testing N+1 for controllers

See merge request gitlab-org/gitlab-ce!31940
This commit is contained in:
Lin Jen-Shin
2019-08-20 11:35:21 +00:00
2 changed files with 8 additions and 1 deletions

View File

@ -63,7 +63,7 @@ They're useful to test permissions, redirections, what view is rendered etc.
| Code path | Tests path | Testing engine | Notes |
| --------- | ---------- | -------------- | ----- |
| `app/controllers/` | `spec/controllers/` | RSpec | |
| `app/controllers/` | `spec/controllers/` | RSpec | For N+1 tests, use [request specs](../query_recorder.md#use-request-specs-instead-of-controller-specs) |
| `app/mailers/` | `spec/mailers/` | RSpec | |
| `lib/api/` | `spec/requests/api/` | RSpec | |
| `app/assets/javascripts/` | `spec/javascripts/`, `spec/frontend/` | Karma & Jest | More details in the [Frontend Testing guide](frontend_testing.md) section. |