Popularity
5.5
Growing
Activity
5.8
Growing
421
38
39

Programming language: Swift
License: MIT License
Tags: Testing     iOS     Swift    
Latest version: v0.16.0

Mockingbird alternatives and similar libraries

Based on the "Testing" category.
Alternatively, view Mockingbird alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Mockingbird or a related project?

Add another 'Testing' Library

README

Mockingbird

Mockingbird makes it easy to mock, stub, and verify objects in Swift unit tests. You can test both Swift and Objective-C without writing any boilerplate or modifying production code.

Documentation

Visit MockingbirdSwift.com for quick start guides, walkthroughs, and API reference articles.

Examples

Automatically generating mocks.

$ mockingbird configure BirdTests -- --target Bird

Manually generating mocks.

$ mockingbird generate --testbundle BirdTests --target Bird --output Mocks.generated.swift

Using Mockingbird in tests.

// Mocking
let bird = mock(Bird.self)

// Stubbing
given(bird.canFly).willReturn(true)

// Verification
verify(bird.fly()).wasCalled()

Contributing

Please read the [contributing guide](/.github/CONTRIBUTING.md) to learn about reporting bugs, developing features, and submitting code changes.

License

Mockingbird is MIT licensed. By contributing to Mockingbird, you agree that your contributions will be licensed under its MIT license.


*Note that all licence references and agreements mentioned in the Mockingbird README section above are relevant to that project's source code only.