Unity UI Test Automation framework allows to test user interface interaction.
Features:
- Allows to write automated tests that drive the game in a way similar to how a user would
- Integrated with Unity UI solution, can easily be integrated with custom solutions like NGUI or EZGUI
- Based on NUnit framework included with Unity and integrated with Test Runner (PlayMode)
- Tests can be executed in Editor or Unity Player
- Includes lightweight dependency injection framework for object mocking
Source code is available on Github
Note that running tests in platform players (for example Standalone, Android, or iOS) from command line is not currently supported by Unity.
If you would like to execute tests from command line or write tests for older Unity versions check out previous version of the framework.
Check out my blog post for more information about UI test automation in Unity.
Documentation is in the package Assets/UITest/README.txt
Examples are in Assets/UITest/Examples