Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Unit Tests for iOS #9

Open
psineur opened this issue Dec 3, 2011 · 5 comments
Open

Running Unit Tests for iOS #9

psineur opened this issue Dec 3, 2011 · 5 comments

Comments

@psineur
Copy link
Owner

psineur commented Dec 3, 2011

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...

@hffmnn
Copy link

hffmnn commented Dec 6, 2011

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

@psineur
Copy link
Owner Author

psineur commented Dec 6, 2011

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)

@hffmnn
Copy link

hffmnn commented Dec 6, 2011

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

@psineur
Copy link
Owner Author

psineur commented Dec 8, 2011

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.

@hffmnn
Copy link

hffmnn commented Dec 8, 2011

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
Projects
None yet
Development

No branches or pull requests

2 participants