'foo@bar.co" />
红联Linux门户
Linux帮助

Ruby测试框架 Riot

发布时间:2012-09-18 21:36:51来源:红联作者:empast
Riot 是一个新的Ruby测试框架,作者是Justin Knowlden。它的主要目的是提高测试的效率。Justin对Riot与Test::Unit进行了比较,测试结果显示Riot比Test::Unit的测试速度快一倍多。

测试示例:[code]context "a new user" do
setup { User.new(:email => 'foo@bar.com') }
asserts("email address") { topic.email }.equals('foo@bar.com')
end[/code]主页:https://github.com/thumblemonks/riot

下载:https://github.com/thumblemonks/riot/archives/master

来自:开源中国社区
文章评论

共有 0 条评论