Skip to content

Running Unit Tests for iOS #9

Open

Description

@psineur

Unit Tests are running each build in Mac project.
But in iOS project you must press CMD+U to run the tests on Simulator .

Unit tests doesn't work on Device.

They always succeed, even if you use CMD+U & write some STFail's in them.

Be warned...

Activity

  1. hffmnn commented on Dec 6, 2011

    @hffmnn

    Hi,

    just wanted to tell, that I tested on iPhone 4S. When adding a STFail it fails on device and simulator, so I can't say they always succeed. Seems to work perfect here.

    Regards

  2. psineur commented on Dec 6, 2011

    @psineur
    OwnerAuthor

    You use latest iOS & XCode on Lion?

    Maybe i should try it on iOS 5 - i tried only on iOS 4.

    Anyway, thank you for the tip!

    06.12.11 17:09, sunatmidnight пишет:

    Hi,

    just wanted to tell, that I tested on iPhone 4S. When adding a STFail it fails on device and simulator, so I can't say they always succeed. Seems to work perfect here.

    Regards


    Reply to this email directly or view it on GitHub:
    #9 (comment)

  3. hffmnn commented on Dec 6, 2011

    @hffmnn

    Yes, latest iOS and Xcode on Lion, both NOT beta

  4. psineur commented on Dec 8, 2011

    @psineur
    OwnerAuthor

    Tried with iOS 5 on iPad - same problem - STFail does nothing.
    My XCode version is 4.2 (build 4D199).

    Gonna update to latest 4.2.1 today & try again.

  5. hffmnn commented on Dec 8, 2011

    @hffmnn

    Tested one more, this time on iPad2
    Adding

    • (void) testFail {
      STFail(@"This should fail");
      }

    in AMCTestSimple let the tests fail.

    Version 4.2.1, Build 4D502.

    Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions