View Single Post
Old 08-23-2021, 12:30 AM   #1
sahithya
Registered User
 
Join Date: Feb 2013
Location: Bangalore
Posts: 1,229
Steps to test a JSON

Create a JSON test file.
Grab some JSON from your API and save it to a file in your project.
Create a test case.
Create a new XCTestCase subclass, then write a test method.
Load the JSON data into the test case.
Call your parser with the JSON data.
Make assertions on the result.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
sahithya is offline   Reply With Quote