Feature #282

Hudson の自動テストがRedmine 0.9で通らない

Added by Haru Iida 8 months ago. Updated 6 months ago.

Status:終了 Start:01/23/2010
Priority:通常 Due date:
Assigned to:Toshiyuki Ando % Done:

100%

Category:- Spent time: -
Target version:1.0.3

Description

そろそろHudson pluginのテスト環境もRedmine 0.9に移行したいと思います。
今のテストは0.9では通らないので変更をお願いします。

参考までに:
http://haruiida.blogspot.com/2009/09/testunit.html


Associated revisions

Revision 471
Added by Toshiyuki Ando 6 months ago

fixes #282
unittest works under redmine0.9.x or trunk( does'nt work redmine0.8.x)

History

Updated by Toshiyuki Ando 8 months ago

fixture がないからですよね?

fixture replacement 決定戦

をみると、object_daddy は使いづらそうなんですよね。
飯田さんは、どれを使う予定ですか?

Updated by Toshiyuki Ando 8 months ago

あ、違いましたね。ごめんなさい。
でも、fixture からの移行はおいおい考えたほうがいいのかなぁ。

これ以上テストが大きくなる前に…。

Updated by Haru Iida 7 months ago

  • Target version set to some distant future(いつかやる)

object_daddy を使い始めてます
exemplarというテストデータを生成する雛形のようなものをモデル毎に作るのですが、Redmineの各モデル用exemplarが既に用意されているのでこれを利用しない手は無いと思います。

fixtureも使えるので無理に移行する必要は無いと思いますが、データをたくさん作らなければならない場合にはfixtureだと面倒ですね。

Updated by Toshiyuki Ando 6 months ago

  • Status changed from 新規 to 解決
  • % Done changed from 0 to 100

更新履歴 r471 で適用されました。

Updated by Toshiyuki Ando 6 months ago

  • Target version changed from some distant future(いつかやる) to 1.0.3

Updated by Toshiyuki Ando 6 months ago

  • Status changed from 解決 to 終了

Also available in: Atom PDF