hiiwave / SpritekitUITestingExample

Demo on UI testing for ios game under SpriteKit framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpritekitUITestingExample

Demo on UI testing for ios game under SpriteKit framework

Description

This is a simple demo on how to perform UI testing on ios game powered by SpriteKit framework.

The idea comes from this stackoverflow answer, where the accessibility materials for elements to be UI-tested are created. That's mean:

  1. List all accessible elements contained in the scene

  2. Configure settings for each of these elements, especially frame data.

In this demo, there are two scenes (SKScene) which can transit to each other by navigation buttons (SKSpriteNode). Two UI testing targets are cretaed to automatically naviagate between scenes:

  1. SpritekitUITestingExampleKIFTests: implemented by KIF

  2. SpritekitUITestingExampleUITests: implemented by Xcode UI Testing Framework

Hope this helps for those who would like to do UI testing on a Spritekit game :)

Special Thanks

Thanks to Domsware from Stackoverflow for this awesome idea!

About

Demo on UI testing for ios game under SpriteKit framework


Languages

Language:Objective-C 100.0%