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 8303617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:35:23+00:00 2026-06-08T17:35:23+00:00

I am using XCode for test driven development in C++. It occurred to me

  • 0

I am using XCode for test driven development in C++.

It occurred to me that I would save a lot of time if XCode could automatically build and run my tests every time I save.

Is there any way to do this (by scripting XCode or otherwise)? Google doesn’t seem to have a clue.

I have seen this workflow when using interpreted languages and it really does increase productivity.

Let’s assume that my machine is fast enough to build and run tests in a few seconds.

  • 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-08T17:35:24+00:00Added an answer on June 8, 2026 at 5:35 pm

    automatically? no. you could write your own fsevent monitor agent. when a change occurs that requires a rebuild, do something appropriate.

    the easy way around this: you can configure xcode to save when building. you don’t need save explicitly, just hit run with this preference enabled. in that sense, hitting run is as simple as hitting save, and that performs a save, build and run in the correct order when you hit run. You may want an intermediate target or scheme for this.

    another option would be to use a vc commit as a trigger for a build and run of your tests (saw your comment: use branches).

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

Sidebar

Related Questions

I'm using XCode for some iOS development and the watch window for viewing STL
I'm using XCode 4.2 and testing my build on iPad 5.0. I started building
I'm using Xcode 3.2.2 and the built in OCUnit test stuff. One problem I'm
Just starting out with an iPhone application using xcode 4.2. I understand that it
I've almost finished my iPhone app and I'm making test using XCode 4 and
I am working on an app using XCode 4.2 and test it on an
I am trying to test my app on an ipod (4.2.1) using xcode 4.
I am trying to test an app on my iOS 4.2.1 device using XCode
I am developping an iPhone App that sends SMS, I am using XCode 4.2
I am using xcode (gcc) to compile my boost test suite and it takes

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.