Rspec vs. TestUnit

前端 未结 6 1513
盖世英雄少女心
盖世英雄少女心 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:30

    I prefer and use these gems for testing

    • Rspec
    • Faker (for creating random and proper data for database)
    • Fabrication (for simple creating instances)

    To start with rspec take a look at this presentation. It contains all the necessary examples:

    http://kerryb.github.com/iprug-rspec-presentation

    Also read through these articles on rspec:

    http://relishapp.com/rspec/rspec-rails

提交回复
热议问题