Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f99dc34a
Commit
f99dc34a
authored
Sep 14, 2021
by
Ezekiel Kigbo
Committed by
Kushal Pandya
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Update frontend integration tests info
parent
e731570a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
spec/frontend_integration/README.md
spec/frontend_integration/README.md
+27
-0
No files found.
spec/frontend_integration/README.md
View file @
f99dc34a
...
...
@@ -11,6 +11,33 @@ Frontend integration specs:
As a result, they deserve their own special place.
## Run frontend integration tests locally
The frontend integration specs are all about testing integration frontend bundles against a
mock backend. The mock backend is built using the fixtures and GraphQL schema.
We can generate the necessary fixtures and GraphQL schema by running:
```
shell
bundle
exec
rake frontend:fixtures gitlab:graphql:schema:dump
```
Then we can use
[
Jest
](
https://jestjs.io/
)
to run the frontend integration tests:
```
shell
yarn jest:integration <path-to-integration-test>
```
If you'd like to run the frontend integration specs
**without**
setting up the fixtures first, then you
can set
`GL_IGNORE_WARNINGS=1`
:
```
shell
GL_IGNORE_WARNINGS
=
1 yarn jest:integration <path-to-integration-test>
```
The
`jest-integration`
job executes the frontend integration tests in our
CI/CD pipelines.
## References
-
https://docs.gitlab.com/ee/development/testing_guide/testing_levels.html#frontend-integration-tests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment