An open API service indexing awesome lists of open source software.

https://github.com/kiarashvosough1999/mockia


https://github.com/kiarashvosough1999/mockia

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          



![Swift](https://img.shields.io/badge/Swift-5.1_5.2_5.3_5.4_5.5_5.6-Orange?style=flat-square)
![Platforms](https://img.shields.io/badge/Platforms-macOS_iOS_tvOS_watchOS-Green?style=flat-square)
![SPM](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)
[![Twitter](https://img.shields.io/badge/Twitter-@Vosough_k-blue.svg?style=flat-square)](https://twitter.com/vosough_k)
[![Linkedin](https://img.shields.io/badge/Linkedin-KiarashVosough-blue.svg?style=flat-square)](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.