Getting Mocka • Features • Usage Requirements • Build Requirements • Development • Known Issues • Wanted Features • Changelog • Communication • Contributing • License
Mocka — A Mock Server for Developers by Developers, made with Swift ❤️.
You can find the latest version here.
Otherwise, to build it yourself or to contribute, look at the Development section for more information.
Here is the list of the most important currently implemented features:
- Server section with a list for all the network exchanges automatically updated
- API Editor included in the app
- Console section with a list for all the logs automatically updated
- Wildcard components in order to be able to define
*
paths - App fully written in Swift by using SwiftUI, Combine, and Vapor
If you want to see what's next, read the Wanted Features section.
You can also go to the GitHub Project board to see the Mocka backlog.
Mocka | macOS |
---|---|
0.1.0 | 11.0 |
develop |
11.0 |
Mocka | Swift | Xcode |
---|---|---|
0.1.0 | 5.3...5.4 | 12.4...12.5 |
develop |
5.3...5.4 | 12.4...12.5 |
We currently use XcodeGen
in order to generate the .xcodeproj
file.
To install XcodeGen
you will also need brew
. If you currently don't have those software installed on your Mac, they will be automatically installed at the first run of setup.sh
.
Currently, the setup.sh
allows the following parameters:
close
to close the Xcode instanceformat
to format all the code by usingswift-format
clean
to clean the derived data (at thebuild
folder) and it also run anxcodebuild clean
commandopen
to open the Xcode project
For example you can type: ./setup.sh close clean open
to close the current Xcode instance, clean the project, and open the newly generated one.
testIsWorkspaceURLValidReturnsFalseForMissingServerConfiguration
inTests/AppTests/SettingsLogic+Test.swift
Unit Test sometimes fails
If you find other issues, please open a bug report.
If you would like to fix a bug, please follow the Contributing section.
The following list is not ordered, if you would like to see what will be included in the next release of Mocka, look at the GitHub Project board.
- Custom 4xx and 5xx Errors Support
- Automatic Updates
- Per-API Delay
- Allow Multiple Responses
- Responses Based on Query or Body
- Automatic Mock Data Generator
- Include SwiftGen for Localization
- Log Export
- Use SwiftNIO instead of Vapor
- Swagger Import
- Command Line Support
If you you would like to request another feature, please open a feature request.
If you would like to add a feature, please follow the Contributing section.
To see what has changed in recent versions of Mocka, see the CHANGELOG.md file.
- If you need help, open an issue.
- If you find a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, see Contributing section.
See CONTRIBUTING.md file.
Mocka is available under the MIT license. See the LICENSE file for more info.