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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
00db7821
Commit
00db7821
authored
Mar 12, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove static HAML fixtures from frontend testing guide
parent
2616c787
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
doc/development/testing_guide/frontend_testing.md
doc/development/testing_guide/frontend_testing.md
+3
-6
spec/javascripts/fixtures/static/README.md
spec/javascripts/fixtures/static/README.md
+3
-0
No files found.
doc/development/testing_guide/frontend_testing.md
View file @
00db7821
...
...
@@ -53,12 +53,9 @@ Remember that the performance of each test depends on the environment.
## Karma test suite
GitLab uses the
[
Karma
][
karma
]
test runner with [Jasmine] as its test
framework for our JavaScript unit and integration tests. For integration tests,
we generate HTML files using RSpec (see
`spec/javascripts/fixtures/*.rb`
for examples).
Some fixtures are still HAML templates that are translated to HTML files using the same mechanism (see
`static_fixtures.rb`
).
Adding these static fixtures should be avoided as they are harder to keep up to date with real views.
The existing static fixtures will be migrated over time.
Please see
[
gitlab-org/gitlab-ce#24753
](
https://gitlab.com/gitlab-org/gitlab-ce/issues/24753
)
to track our progress.
framework for our JavaScript unit and integration tests.
We generate HTML and JSON fixtures from backend views and controllers
using RSpec (see
`spec/javascripts/fixtures/*.rb`
for examples).
Fixtures are served during testing by the
[
jasmine-jquery
][
jasmine-jquery
]
plugin.
JavaScript tests live in
`spec/javascripts/`
, matching the folder structure
...
...
spec/javascripts/fixtures/static/README.md
0 → 100644
View file @
00db7821
# Please do not add new files here!
Instead use a Ruby file in the fixtures root directory (
`spec/javascripts/fixtures/`
).
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