This manual page is part of Xcode Tools version 3.2.2

To obtain these tools:

If you are running a version of Xcode Tools other than 3.2.2, view the documentation locally:

  • In Xcode

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



otest(1)                                 BSD General Commands Manual                                otest(1)

NAME
     otest -- SenTestingKit, OCUnit.

SYNOPSIS
     otest [-SenTest Self | All | None | <TestCaseClassName/testMethodName>] path

DESCRIPTION
     otest runs the unit tests found in the bundle given at path.

ARGUMENTS
     -SenTest value  This flag denotes the scope of the unit test to be run. Possible values are Self, All,
                     None and <TestCaseClassName/testMethodName>. The default value is Self.

     path            Path to the bundle that contains the unit tests.

OBJECTIVE-C GARBAGE COLLECTION
     otest is built with support for Objective-C garbage collection.  Due to the "whole process" nature of
     Objective-C garbage collection, invoking otest from the command line or an IDE or debugger will run
     otest with garbage collection enabled.  Doing so requires that the bundle containing the unit tests
     also be built with support for garbage collection.

     To avoid this requirement and disable garbage collection, run otest in an environment with the
     OBJC_DISABLE_GC environment variable set to YES.

ENVIRONMENT
     OBJC_DISABLE_GC  Set to YES to disable Objective-C garbage collection for otest when running test bun-dles bundles
                      dles that do not use it.

FILES
     /Developer/Tools/RunTargetUnitTests  A script that calls otest with the correct arguments for use with
                                          Xcode.

SEE ALSO
     RunTargetUnitTests(1), otest(1)

Xcode                                           May 12, 2010                                           Xcode

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...