【发布时间】:2011-05-24 01:37:55
【问题描述】:
我已经使用 redgreen gem 来突出显示 rails 3 的一些测试输出。我喜欢它,但我只是因为我正在寻找更具体的解决方案而找到它,而它没有。
我希望看到特别突出显示的文件名。我想用一个例子来说明:
4) Error:
test_shouldn't_be_able_to_make_duplicate_ModeratorPermission(ModeratorPermissionTest):
NoMethodError: undefined method `users' for #<ModeratorPermissionTest:0x7f13ad7ee3d0>
/test/unit/moderator_permission_test.rb:10:in `test_shouldn't_be_able_to_make_duplicate_ModeratorPermission'
5) Error:
test_*should*_be_able_to_make_duplicate_Post(PostTest):
NoMethodError: undefined method `users' for #<PostTest:0x7f13ad7f04a0>
/test/unit/post_test.rb:12:in `test_*should*_be_able_to_make_duplicate_Post'
6) Error:
test_should_be_able_to_make_a_post(PostTest):
NoMethodError: undefined method `users' for #<PostTest:0x7f13ad7f0478>
/test/unit/post_test.rb:6:in `test_should_be_able_to_make_a_post'
当我第一次看到这个黑白相间的时候,我的眼睛并没有立即转向任何一个地方。我希望突出显示“PostTest”和“ModeratorPermission”。如果测试名称本身被突出显示也很好。
有谁知道那里是否有宝石可以做到这一点?
【问题讨论】:
标签: ruby-on-rails-3 testing colors rake