# Why I can't get test log now?

**URL:** <https://www.ruby-forum.com/t/why-i-cant-get-test-log-now/123724>\
**Category:** Rails\
**Created:** [December 20, 2007, 1:42am UTC](https://www.ruby-forum.com/t/why-i-cant-get-test-log-now/123724 "2007-12-20T01:42:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Post date:** [December 20, 2007, 1:42am UTC](https://www.ruby-forum.com/t/why-i-cant-get-test-log-now/123724/1 "2007-12-20T01:42:08Z")

</div>

I don’t know why I can’t get test log now… a few days ago, It’s OK,  
but now, I can’t get test log when I run rake test…  
why? who can help me? Thank you!!

---

<div class="post-metadata">

**Author:** ![OnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Post date:** [December 20, 2007, 1:44am UTC](https://www.ruby-forum.com/t/why-i-cant-get-test-log-now/123724/2 "2007-12-20T01:44:28Z")

</div>

Do you mean the log file in log/test.log?

On Dec 20, 2007 11:11 AM, OnRails [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I don’t know why I can’t get test log now… a few days ago, It’s OK,  
> but now, I can’t get test log when I run rake test…  
> why? who can help me? Thank you!!
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

---

<div class="post-metadata">

**Author:** ![OnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Post date:** [December 20, 2007, 1:50am UTC](https://www.ruby-forum.com/t/why-i-cant-get-test-log-now/123724/3 "2007-12-20T01:50:54Z")

</div>

yes…the log file in log/test.log  
when I run test, There is nothing to write into the test.log.

---

<div class="post-metadata">

**Author:** ![OnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Post date:** [December 20, 2007, 2:01am UTC](https://www.ruby-forum.com/t/why-i-cant-get-test-log-now/123724/4 "2007-12-20T02:01:25Z")

</div>

Can you show whats in your config/environments/test.rb file?

On Dec 20, 2007 11:20 AM, OnRails [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > I don’t know why I can’t get test log now… a few days ago, It’s OK,  
> > > but now, I can’t get test log when I run rake test…  
> > > why? who can help me? Thank you!!
> > 
> > –  
> > Ryan B.[http://www.frozenplague.net](http://www.frozenplague.net)

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

---

<div class="post-metadata">

**Author:** ![OnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Post date:** [December 20, 2007, 2:11am UTC](https://www.ruby-forum.com/t/why-i-cant-get-test-log-now/123724/5 "2007-12-20T02:11:57Z")

</div>

# Settings specified here will take precedence over those in config/

environment.rb

# The test environment is used exclusively to run your application’s

# test suite. You never need to work with it otherwise. Remember

that

# your test database is “scratch space” for the test suite and is

wiped

# and recreated between test runs. Don’t rely on the data there!

config.cache\_classes = true

# Log error messages when you accidentally call methods on nil.

config.whiny\_nils = true

# Show full error reports and disable caching

config.action\_controller.consider\_all\_requests\_local = true  
config.action\_controller.perform\_caching = false

# Set the hosts for imagehost and AssetHost. They can be the same or

different.  
ImgHost = “”  
AssetHost = “”

# Tell ActionMailer not to deliver emails to the real world.

# The :test delivery method accumulates sent emails in the

# ActionMailer::Base.deliveries array.

config.action\_mailer.delivery\_method = :test

# MogileFS settings. Mog Hosts

MogHosts = %w[[www.test.com:6001](http://www.test.com:6001)]

and I don’t change anything in this file…  
Thanks!
