Commit da8058f8 authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Marcia Ramos

Combine sections about RSpec in frontend testing guide

parent fa58b11b
...@@ -516,11 +516,6 @@ glob otherwise your shell may split it into multiple arguments: ...@@ -516,11 +516,6 @@ glob otherwise your shell may split it into multiple arguments:
yarn karma -f 'spec/javascripts/ide/**/file_spec.js' yarn karma -f 'spec/javascripts/ide/**/file_spec.js'
``` ```
## RSpec feature integration tests
Information on setting up and running RSpec integration tests with
[Capybara] can be found in the [Testing Best Practices](best_practices.md).
## Frontend test fixtures ## Frontend test fixtures
Code that is added to HAML templates (in `app/views/`) or makes Ajax requests to the backend has tests that require HTML or JSON from the backend. Code that is added to HAML templates (in `app/views/`) or makes Ajax requests to the backend has tests that require HTML or JSON from the backend.
...@@ -598,7 +593,6 @@ end ...@@ -598,7 +593,6 @@ end
[karma]: http://karma-runner.github.io/ [karma]: http://karma-runner.github.io/
[vue-test]: ../fe_guide/vue.md#testing-vue-components [vue-test]: ../fe_guide/vue.md#testing-vue-components
[rspec]: https://github.com/rspec/rspec-rails#feature-specs [rspec]: https://github.com/rspec/rspec-rails#feature-specs
[capybara]: https://github.com/teamcapybara/capybara
[jasmine]: https://jasmine.github.io/ [jasmine]: https://jasmine.github.io/
## Overview of Frontend Testing Levels ## Overview of Frontend Testing Levels
...@@ -955,7 +949,11 @@ graph RL ...@@ -955,7 +949,11 @@ graph RL
In contrast to [frontend integration tests](#frontend-integration-tests), feature tests make requests against the real backend instead of using fixtures. In contrast to [frontend integration tests](#frontend-integration-tests), feature tests make requests against the real backend instead of using fixtures.
This also implies that database queries are executed which makes this category significantly slower. This also implies that database queries are executed which makes this category significantly slower.
See also the [RSpec testing guidelines](../testing_guide/best_practices.md#rspec). See also
- The [RSpec testing guidelines](../testing_guide/best_practices.md#rspec).
- System / Feature tests in the [Testing Best Practices](best_practices.md#system--feature-tests).
- [Issue #26159](https://gitlab.com/gitlab-org/gitlab/issues/26159) which aims at combine those guidelines with this page.
```mermaid ```mermaid
graph RL graph RL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment