Running Symbian unit test

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:

Launch configuration

Some fields of launch configuration should be noted:

Viewing Test Execution Results

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:

Blank result view

As execution is ongoing the results will be updated on the view. After the execution the view looks like as following:

Result view

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.