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
e9a3ac28
Commit
e9a3ac28
authored
Apr 14, 2017
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention new mechanism to generate frontend fixtures
parent
344a2619
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
doc/development/fe_guide/testing.md
doc/development/fe_guide/testing.md
+4
-2
No files found.
doc/development/fe_guide/testing.md
View file @
e9a3ac28
...
@@ -14,8 +14,10 @@ for more information on general testing practices at GitLab.
...
@@ -14,8 +14,10 @@ for more information on general testing practices at GitLab.
GitLab uses the
[
Karma
][
karma
]
test runner with
[
Jasmine
][
jasmine
]
as its test
GitLab uses the
[
Karma
][
karma
]
test runner with
[
Jasmine
][
jasmine
]
as its test
framework for our JavaScript unit tests. For tests that rely on DOM
framework for our JavaScript unit tests. For tests that rely on DOM
manipulation we use fixtures which are pre-compiled from HAML source files and
manipulation, we generate HTML files using RSpec suites (see
`spec/javascripts/fixtures/*.rb`
for examples).
served during testing by the
[
jasmine-jquery
][
jasmine-jquery
]
plugin.
Some fixtures are still HAML templates that are translated to HTML files using the same mechanism (see
`static_fixtures.rb`
).
Those will be migrated over time.
Fixtures are served during testing by the
[
jasmine-jquery
][
jasmine-jquery
]
plugin.
JavaScript tests live in
`spec/javascripts/`
, matching the folder structure
JavaScript tests live in
`spec/javascripts/`
, matching the folder structure
of
`app/assets/javascripts/`
:
`app/assets/javascripts/behaviors/autosize.js`
of
`app/assets/javascripts/`
:
`app/assets/javascripts/behaviors/autosize.js`
...
...
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