Copyright (c) 2017 Ted Sie. All rights reserved.
The Simple Unit Testing plugin for Unity is an open-source project whose goal is to provide a plugin that allows Unity developer to implement unit test methods with easy steps.
The Simple Unit Testing plugin for Unity allows you to create test methods with custom attributes. The plugin provides support for the following attributes.
Attributes:
- [TestButton]
- [TestDropdown]
- [TestInputField]
- [TestSlider]
- [TestToggle]
System requirements:
- Unity 4.6 or above. Note: Unity released UGUI system with 4.6
[TestButton]
[TestDropdown]
[TestInputField]
[TestSlider]
[TestToggle]
- Create a new Scene
- Create a new Canvas
- Drag UnitTestingGenerator in Canvas
- Write new test method with custom attributes
- Add component to UnitTestingObject
- Play
The UnitTestingDragHelper is a simple switch to open/close the unit testing screen. The idea is from iOS AssistiveTouch.