Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiiwave/SpritekitUITestingExample
Demo on UI testing for ios game under SpriteKit framework
https://github.com/hiiwave/SpritekitUITestingExample
kif spritekit uitest
Last synced: 16 days ago
JSON representation
Demo on UI testing for ios game under SpriteKit framework
- Host: GitHub
- URL: https://github.com/hiiwave/SpritekitUITestingExample
- Owner: hiiwave
- Created: 2017-12-21T06:53:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-21T07:20:33.000Z (almost 7 years ago)
- Last Synced: 2024-08-01T08:09:11.491Z (3 months ago)
- Topics: kif, spritekit, uitest
- Language: Objective-C
- Homepage:
- Size: 57.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://developer.apple.com/spritekit/) framework.
The idea comes from [this stackoverflow answer](https://stackoverflow.com/questions/34293575/is-it-possible-to-use-xcode-ui-testing-on-an-app-using-spritekit/42676977#42676977),
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](https://github.com/kif-framework/KIF)
2. `SpritekitUITestingExampleUITests`: implemented by [Xcode UI Testing Framework](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/09-ui_testing.html)
Hope this helps for those who would like to do UI testing on a Spritekit game :)
## Special Thanks
Thanks to [Domsware](https://stackoverflow.com/users/540780/domsware) from Stackoverflow for this awesome idea!