FlexMock 0.6.8

Operating systemsOS : Windows / Linux / Mac OS / BSD / Solaris
Program licensingScript Licensing : Other Free / Open Source License - FreeBSD License
CreatedCreated : Jan 13, 2011
Size downloadDownloads : 1
Program licensing
Thank you for voting...

Stub: fake object that returns a canned value.<br ...

stub: fake object that returns a canned value.
Mock: fake object that returns a canned value and has an expectation, i. e. it includes a built-in assertion.
spy: watches method calls and records/verifies if the method is called with required parameters.
The Python library was developed after the Ruby library by the same name, flexmock by Herman Sheremetyev.
It also implements a number of things that Ruby's FlexMock 0.6.8 doesn't support, such as proxying/spying and matching arguments using their classes in addition to values.
The Ruby library is available here.
Most important functions of FlexMock [flexmock0.6.8.exe]:

• Mocks returning custom values, including different values on successive invocations

• Mocks raising custom exceptions

• Simple syntax for generating new mock objects

• Overriding new instances (on new-style objects)

• Test runner integration, i. e. automatic expectation checking on tearDown

• Advanced argument matching, including matching types and user-defined classes

• Expectations on number of times called, including at_least/at_most modifiers

• Parameter shortcuts for even terser syntax

• Proxying/spying using the and_execute expectation modifier

• Mocking a generator using and_yield

• Easy mocking of private methods

• Enforcing expectations call ordering
Demands:

• Python 2. 4. 4 or higher
News in the current FlexMock - 0MB version:

• Add should_call() alias for should_receive(). and_execute.

• Ensure new_instances can't be used with expectation modifiers.

• Make and_execute match return value by class in addition to value.

• Support for mocking out static methods.

• Bit of test fixage (thanks to derdon).

FlexMock 0.6.8 scripting tags: stub, expectation, unit testing, stub object, matching, flexmock, including, library, mock script, fake, spy. What is new in FlexMock 0.6.8 software script? - Unable to find FlexMock 0.6.8 news. What is improvements are expecting? Newly-made FlexMock 0.7 will be downloaded from here. You may download directly. Please write the reviews of the FlexMock. License limitations are unspecified.