logo
首页技术栈工具库讨论
active_mocker

active_mocker

Creates stub classes from any ActiveRecord model. By using stubs in your tests you don't need to load Rails or the database, sometimes resulting in a 10x speed improvement. ActiveMocker analyzes the methods and database columns to generate a Ruby class file. The stub file can be run standalone and comes included with many useful parts of ActiveRecord. Stubbed out methods contain their original argument signatures or ActiveMocker friendly code can be brought over in its entirety. Mocks are regenerated when the schema is modified so your mocks won't go stale, preventing the case where your unit tests pass but production code fails.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
GitHub iconzeisler/active_mocker496
RUBYGEMS
gem install active_mocker
查看
标签
根据用户添加的标签生成
暂无标签