[Swift] Unit testing for Petstore sample (community contribution)
Similar to ObjC Unit Testing for Petstore, we also need unit testing for Swift to test the Petstore so as to ensure code changes do not break the existing functionality of the Swift API client.
Currently, we're looking for community contribution. If you need help to get started, please let me (@wing328) know. Thanks in advance.
How to call "loginUser"?
Is it like this?
PetstoreClientAPI. UserAPI.loginUser(username username: txtUsername.text!, password: txtPassword.text!)
public class func loginUser(username username: String?, password: String?) -> RequestBuilder
But the return is " RequestBuilder
How can I get the response?
Thank you very much.
@wing328 I believe I have a good start in my latest PR for this one.
@jaz-ah :+1:
I'll close this after PR merges into master.