Symbian unit test are executed in emulator by defining a launch configuration. This configuration is saved, so it is an operation that needs to be done only once.
Launch configuration is created by selecting a menu item: Run | Run Configurations..., and then select Symbian Unit Test Emulation as your launch configuration type, then pressing the New button to create a new launch configuration.
This launch configuration has three tabs. The first one is specific to this launch configuration and the remaining two are common tabs for all launch configuration. It contains settings like where to save the launch configuration, and where to direct its (possible) output. More information about Environment and Common tab can be found from Carbide documentation.
If the project under Symbian Unit Test is selected in your workspace when the launch configuration is created, the wizard will fill all the fields automatically. Information can be then reviewed and launch can be preceded.
The picture below is an example:
Some fields of launch configuration should be noted:
%EPOCROOT%/Epoc32/release/winscw/udeb
folder.UTClassName::TestCaseName
to specify individual case, use comma "," to seperate them and no whitespace allowed.When Symbian Unit Test launch configuration is launched, it will automatically show you the EUnit Results View. This view is by default located at the bottom central area of the IDE, as following:
As execution is ongoing the results will be updated on the view. After the execution the view looks like as following:
Buttons (right side of the upper tab) from left to right indicate:
In the result view, double-click the link of failed case will open the source code and locate cursor at the the failed line.