https://github.com/vincent-pradeilles/AutoMocker
  
  
    AutoMocker is a Swift framework that leverages the type system to let you easily create mocked instances of your data types. 
    https://github.com/vincent-pradeilles/AutoMocker
  
        Last synced: 7 months ago 
        JSON representation
    
AutoMocker is a Swift framework that leverages the type system to let you easily create mocked instances of your data types.
- Host: GitHub
 - URL: https://github.com/vincent-pradeilles/AutoMocker
 - Owner: vincent-pradeilles
 - License: mit
 - Created: 2019-07-16T10:27:41.000Z (over 6 years ago)
 - Default Branch: master
 - Last Pushed: 2019-07-16T11:13:24.000Z (over 6 years ago)
 - Last Synced: 2025-03-10T20:41:22.591Z (8 months ago)
 - Language: Swift
 - Homepage:
 - Size: 19.5 KB
 - Stars: 43
 - Watchers: 2
 - Forks: 3
 - Open Issues: 1
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
- fucking-awesome-swift - AutoMockable - A framework that leverages the type system to let you easily create mocked instances of your data types. (Libs / Testing)
 - awesome-swift - AutoMockable - A framework that leverages the type system to let you easily create mocked instances of your data types. (Libs / Testing)
 - awesome-swift - AutoMockable - AutoMocker is a Swift framework that leverages the type system to let you easily create mocked instances of your data types. ` 📝 2 years ago` (Testing [🔝](#readme))
 - awesome-swift - AutoMockable - A framework that leverages the type system to let you easily create mocked instances of your data types. (Libs / Testing)
 
README
          # AutoMocker


[](https://github.com/Carthage/Carthage)
## Context
AutoMocker is a Swift framework that leverages the type system to let you easily create mocked instances of your data types.
Here's an example of how it can be used:
```swift
struct MyData {
    let bool: Bool
    let string: String
    let integers: [Int]
}
let mocked = mock(MyData.init) // a mocked instance has been created 🎉
```
For the moment, AutoMocker supports initializers that take up to 6 arguments.
## Requirements
Xcode 10+ & Swift 5.0
## Installation
### CocoaPods
Add the following to your `Podfile`:
`pod "AutoMocker"`
### Carthage
Add the following to your `Cartfile`:
`github "vincent-pradeilles/AutoMocker"`
## Author
* Twitter: [@v_pradeilles](https://twitter.com/v_pradeilles)