1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rake test だと実行されないテストがあるので rake test:all を使うようにした

Last updated at Posted at 2014-12-04

2014-12-26 追記

rails 4.2 では rake test:all が DEPRECATED となり、rake test で test ディレクトリ以下のテストが全て実行できるようになったので、以下の記載には該当しません。安心して rake test を使いましょう。

以前の記事

test/ 以下が以下のように構成されている時に普通に rake test でテストを実行してしまうと、formsservices 以下に置かれているテストが実行されない。

$ tree -L 1 -d test
test
├── controllers
├── factories
├── fixtures
├── forms
├── helpers
├── integration
├── mailers
├── models
├── services
└── workers

なので、CI 上では rake test:all を使うようにした。
ローカルでは guard でテストを回していたので気づかなかった。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?