Skip to content

Demo on UI testing for ios game under SpriteKit framework

Notifications You must be signed in to change notification settings

hiiwave/SpritekitUITestingExample

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published