Rspec vs. TestUnit

前端 未结 6 1522
盖世英雄少女心
盖世英雄少女心 2020-12-23 20:14

I\'m beginning the planning phase of creating a testing suite for my rails 3.0.8 application. I\'m trying to decide on which testing framework/gems to use. Normally I prefer

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 20:16

    This Ruby Inside article, especially if you follow the links and read the comments, provides quite a thorough discussion of the relative merits of Test::Unit and RSpec. A key differentiator seems to be that:

    • people who have non-technical clients are more likely to view RSpec and Cucumber more favourably;
    • others are more likely to prefer more direct systems like Test::Unit.

    Also see this part of Michael Hartl's Rails Tutorial for a comparison of RSpec and Cucumber.

提交回复
热议问题