Fudge

From Free Software Directory
 
Jump to: navigation, search


[edit]

Fudge

http://farmdev.com/projects/fudge/
Python module for using fake objects to test real ones

Fudge is a Python module for using fake objects (mocks and stubs) to test real ones.

In readable Python code, you declare what methods are available on your fake and how they should be called. Then you inject that into your application and start testing. This declarative approach means you don’t have to record and playback actions and you don’t have to inspect your fakes after running code. If the fake object was used incorrectly then you’ll see an informative exception message with a traceback that points to the culprit.

Fudge was inspired by Mocha which is a simpler version of jMock. But unlike Mocha, Fudge does not automatically hijack real objects; you explicitly patch them in your test. And unlike jMock, Fudge is only as strict about expectations as you want it to be. If the type of arguments sent to the fake method aren’t important then you don’t have to declare an expectation for them.





Licensing

License

Verified by

Verified on

Notes

License

Other

Verified by

Debian: Jan Dittberner <jandd@debian.org>

Verified on

24 May 2012

Notes

License: mit




Leaders and contributors

Contact(s)Role
Kumar McMillan http://farmdev.com/projects/fudge/ contact


Resources and communication

AudienceResource typeURI
Python (Ref)https://pypi.org/project/fudge
Debian (Ref) (R)https://tracker.debian.org/pkg/python-fudge
Ruby (Ref)https://rubygems.org/gems/fudge


Software prerequisites




Entry








"contact" is not in the list (Maintainer, Contributor, Developer, Sponsor, Unknown) of allowed values for the "Role" property.


"Python (Ref)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.


"Ruby (Ref)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.


"Debian (Ref) (R)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.






Date 2015-07-17
Source Debian
Source link http://packages.debian.org/sid/python-fudge

[[Category:]]



Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.