BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
fc76ff10
Commit
fc76ff10
authored
Jul 13, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable Rails logging in CI test environments
See
https://jtway.co/speed-up-your-rails-test-suite-by-6-in-1-line-13fedb869ec4
parent
48b976e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
test.rb
config/environments/test.rb
+5
-0
testing.md
doc/development/testing.md
+5
-0
No files found.
config/environments/test.rb
View file @
fc76ff10
...
...
@@ -43,4 +43,9 @@ Rails.application.configure do
config
.
cache_store
=
:null_store
config
.
active_job
.
queue_adapter
=
:test
if
ENV
[
'CI'
]
&&
!
ENV
[
'RAILS_ENABLE_TEST_LOG'
]
config
.
logger
=
Logger
.
new
(
nil
)
config
.
log_level
=
:fatal
end
end
doc/development/testing.md
View file @
fc76ff10
...
...
@@ -479,6 +479,11 @@ slowest test files and try to improve them.
run the suite against MySQL for tags,
`master`
, and any branch that includes
`mysql`
in the name.
-
On EE, the test suite always runs both PostgreSQL and MySQL.
-
Rails logging to
`log/test.log`
is disabled by default in CI
[
for
performance reasons]
[
logging
]
. To override this setting, provide the
`RAILS_ENABLE_TEST_LOG`
environment variable.
[
logging
]:
https://jtway.co/speed-up-your-rails-test-suite-by-6-in-1-line-13fedb869ec4
## Spinach (feature) 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