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.
|