Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8372047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:19:05+00:00 2026-06-09T14:19:05+00:00

I have added a new unit test to my project’s test target recently, and

  • 0

I have added a new unit test to my project’s test target recently, and when I hit Product > Test, Xcode says, “Test succeeded”. I am fairly certain though that the test should fail, because the method under test has not been implemented yet. I added a breakpoint to the test, but it is never being reached; the test is still “successful” without breaking. Growing suspicious, I have added STFail to a different test – still, “Test succeeded”.

I am certain that the unit tests did work in the past. Since then I haven’t performed any changes to the project structure I am aware of; only that I have updated Xcode to 4.4.

I have found this post explaining how to examine the scheme’s test settings, and they look correct to me: the test target is listed under “tests”, and it and all of its tests are checked.

What can I do to find the reason for the tests always succeeding?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:19:07+00:00Added an answer on June 9, 2026 at 2:19 pm

    The issue was caused by a framework I had added to the project that caused an error on execution.

    I decided to ignore the unit tests for now and move on to the actual project. When I ran it, it produced an error:

    dyld: library not loaded: <Framework name>

    Once I saw this, I removed the newly referenced framework, and the unit tests behaved as expected. I then discovered the little buttons to the far right in the test results page that pop open the test’s console output. There were the error messages Xcode had hidden all the time, claiming the tests ran successfully.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have added a new job in my hudson server which builds the project
We recently added a new TeamCity build agent. Because it doesn't have ASP.NET MVC
My storyboard seems locked. I have added new labels and imageviews to two different
I have IIS 7.5 With one web site I added new virtual directory and
Most of my content is in a new table I have added to JOOMLA
I have a list within Sharepoint, using a custom new form I have added
I have download the new Bing API C# file and added it to my
I am new to iphone development.I have created a UIview controller class and added
I need to have a new view(w/ ViewController) added over the top of another.
Have upgraded to eclipse.indigo using a new installation. Added m2e. Maven shows up under

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.