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
ba446b86
Commit
ba446b86
authored
May 03, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Elaborate on the usage of Spring
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
d811004d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
doc/development/rake_tasks.md
doc/development/rake_tasks.md
+16
-6
No files found.
doc/development/rake_tasks.md
View file @
ba446b86
...
...
@@ -31,16 +31,26 @@ files it can find, also the ones in `/tmp`
To run a single test file you can use:
-
`b
undle exec
rspec spec/controllers/commit_controller_spec.rb`
for a rspec test
-
`b
undle exec
spinach features/project/issues/milestones.feature`
for a spinach test
-
`b
in/
rspec spec/controllers/commit_controller_spec.rb`
for a rspec test
-
`b
in/
spinach features/project/issues/milestones.feature`
for a spinach test
To run several tests inside one directory:
-
`b
undle exec
rspec spec/requests/api/`
for the rspec tests if you want to test API only
-
`b
undle exec
spinach features/profile/`
for the spinach tests if you want to test only profile pages
-
`b
in/
rspec spec/requests/api/`
for the rspec tests if you want to test API only
-
`b
in/
spinach features/profile/`
for the spinach tests if you want to test only profile pages
If you want to use
[
Spring
](
https://github.com/rails/spring
)
set
`ENABLE_SPRING=1`
in your environment.
### Speed-up tests, rake tasks, and migrations
[
Spring
](
https://github.com/rails/spring
)
is a Rails application preloader. It
speeds up development by keeping your application running in the background so
you don't need to boot it every time you run a test, rake task or migration.
If you want to use it, you'll need to export the
`ENABLE_SPRING`
environment
variable to
`1`
:
```
export ENABLE_SPRING=1
```
## Compile Frontend Assets
...
...
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