Categories: None [Edit]
mockumentary
With the happy proliferation of TDD, test suites are getting massive, and developer efficiency is dwindling
as we wait for our tests to pass. There is a big tradeoff between making unit test more integrationish (and therefore more reliable) vs.
making them very mocky, unity and fast. Mockumentary is a library for the later. It inspects the ActiveRecord universe and
makes a series of AR mockeries that approximate model without hitting the database, or making any assertions. The assertions,
they are still part of the developers job.
Mocumentary has two types of AR mockeries: One is used within the Rails universe. It uses introspection to derive association
and field information. The second is a static copy built from the first. This static version can be used outside the Rails
test universe in a suite faster than the speed of Rails environment load time.
Mocking isn't for everyone, so test-drive responsibly.
Total
Ranking: 97,753 of 183,127
Downloads: 7,522
Daily
Ranking: 38,694 of 183,106
Downloads: 2
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|
Depends on
Rank | Downloads | Name |
---|---|---|
1 | 2,409,222,051 | bundler |
7 | 990,071,846 | activesupport |
25 | 818,160,872 | rspec |
35 | 596,341,077 | activerecord |
96 | 351,638,287 | hashie |
150 | 242,327,378 | faker |
253 | 141,575,949 | sqlite3 |
4,068 | 1,855,426 | jeweler |
Owners
# | Gravatar | Handle |
---|---|---|
1 | rubyghetto |