https://github.com/kiarashvosough1999/mockia
https://github.com/kiarashvosough1999/mockia
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kiarashvosough1999/mockia
- Owner: kiarashvosough1999
- License: mit
- Created: 2022-08-04T11:07:34.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-22T11:40:59.000Z (about 3 years ago)
- Last Synced: 2025-03-24T08:19:43.710Z (7 months ago)
- Language: Swift
- Size: 28.4 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README



[](https://twitter.com/vosough_k)
[](https://www.linkedin.com/in/kiarashvosough/)
Mockia: Easy Handling Mock's Expectations in Swift
- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#Usage)
- [Contributors](#Contributors)
- [License](#license)
- [Documented With Docc](https://kiarashvosough1999.github.io/Mockia/documentation/mockia/)
## Features
- [x] Set Factual Actions Inside Mocks
- [x] Ignore Factual Actions
- [x] Verify Expected Actions
## Requirements
| Platform | Minimum Swift Version | Installation | Status |
| --- | --- | --- | --- |
| iOS 9.0+ | 5.3 | [SPM](#cocoapods) | Tested |
| macOS 10.10+ | 5.3 | [SPM](#cocoapods) | NotTested |
| watchOs 5.0+ | 5.3 | [SPM](#cocoapods) | NotTested |
| tvOS 9.0+ | 5.3 | [SPM](#cocoapods) | NotTested |
## Installation
### SPM
The [Swift Package Manager](https://www.swift.org/package-manager) is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
Once you have your Swift package set up, adding `Mockia` as a dependency is as easy as adding it to the dependencies value of your Package.swift.
```swift
dependencies: [
.package(url: "https://github.com/kiarashvosough1999/Mockia.git", .upToNextMajor(from: "0.0.1"))
]
```
## Usage
For step to Step guide please read this [Article](https://medium.com/@vosough.k/mocking-in-swift-a623b41487e0)
## Contributors
Feel free to share your ideas or any other problems. Pull requests are welcomed.
## License
`Mockia` is released under an MIT license. See [LICENSE](https://github.com/kiarashvosough1999/Mockia/blob/master/LICENSE) for more information.