Creating a TEFUnit Project

This section describes how to create a TEFUnit project using the Project Creation Wizard (PCW).

Introduction

TEFUnit is an extension to the standard TEF that allows automated execution of unit tests. A TEFUnit project can be created as a test environment using PCW. A TEFUnit project can test one or more existing projects.

Procedure

This section describes how to create a new TEFUnit project using PCW.

  1. Click File > New > New Project to launch the Project Creation Wizard.

  2. Select TEFUnit Project under Generic Symbian OS Tests to create a new TEFUnit project and click Next.

    Note: You can launch the Project Creation Wizard by clicking File > New > Symbian OS C++ Project > TEFUnit Project.

    New project wizard


    New project wizard

  3. Type the Project name for the new project. Select a location for the new project or accept the default location and click Next.

    If you select a location that does not exist, the wizard creates a directory automatically.

    Project name


    Project name

  4. Select one or more SDKs and Build Configurations to build the project for the specified platforms. Click Next.

    Enable the Filter SDKs based on selected template option to show only the build configurations based on the SDK template you previously selected. Uncheck this option to show all enabled SDKs and their related build configurations.

    Symbian OS SDKs


    Symbian OS SDKs

  5. Select the required classes and methods that you want to test from one or more projects.

    Classes to test


    Classes to test

  6. Click Next to set the project properties in the Basics dialog box.

    For more information on all fields, refer to Carbide Help > Carbide.c++ User Guide > Create Projects.

    The UID, Author name and Copyright fields can be set as follows:

    Basics settings


    Basics settings

  7. Click Next to launch the Project Directories dialog box. You can change the directories for the files to be generated.

    Project directories


    Project directories

  8. Click Finish.

Result

The wizard creates a directory structure within a project that contains the following files:

Project generated


Project generated

  • Test suite file (base on the selected classes and methods)

  • .script file

  • .mmp file

  • bld.inf file

  • .iby file

  • .ini file (if selected).