Sleeping Wombat GUI
0.100
swGUI
|
Framework for testing GUI, controls and probably in future applications written swGUI too. More...
Classes | |
class | sw::gui::TestFramework |
Class used as application entry point in tests. More... | |
Framework for testing GUI, controls and probably in future applications written swGUI too.
Tests use special sw::gui::TestFramework class which derives from sw::gui::GUISystem and implements all functionalities with minimal context and light dependencies. You can use this class directly or derive your own class normally as you would do in application.
TestFramework gives you posibility to:
To write test you must link TestFramework.lib which links by itself:
TestFramework doesn't create window nor rendering api - it uses fake subtitutes to minimize testing time.
Moreover you must link other things necessary to make GUI work like:
All these things can change in future versions.
This code uses catch to check test condition but you can use your own testing framework.