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

  • Home
  • SEARCH
  • 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 40889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:05:39+00:00 2026-05-10T15:05:39+00:00

I recently started work on a personal coding project using C++ and KDevelop. Although

  • 0

I recently started work on a personal coding project using C++ and KDevelop. Although I started out by just hacking around, I figure it’ll be better in the long run if I set up a proper unit test suite before going too much further. I’ve created a seperate test-runner executable as a sub project, and the tests I’ve added to it appear to function properly. So far, success.

However, I’d really like to get my unit tests running every time I build, not only when I explicitly run them. This will be especially true as I split up the mess I’ve made into convenience libraries, each of which will probably have its own test executable. Rather than run them all by hand, I’d like to get them to run as the final step in my build process. I’ve looked all through the options in the project menu and the automake manager, but I can’t figure out how to set this up.

I imagine this could probably be done by editing the makefile by hand. Unfortunately, my makefile-fu is a bit weak, and I’m also afraid that KDevelop might overwrite any changes I make by hand the next time I change something through the IDE. Therefore, if there’s an option on how to do this through KDevelop itself, I’d much prefer to go that way.

Does anybody know how I could get KDevelop to run my test executables as part of the build process? Thank you!

(I’m not 100% tied to KDevelop. If KDevelop can’t do this, or else if there’s an IDE that makes this much easier, I could be convinced to switch.)

  • 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. 2026-05-10T15:05:40+00:00Added an answer on May 10, 2026 at 3:05 pm

    Although you could manipulate the default `make` target to run your tests, it is generally not recommended, because every invocation of

    make

    would run all the tests. You should use the ‘check’ target instead, which is an accepted quasi-standard among software packages. By doing that, the tests are only started when you run

    make check

    You can then easily configure KDevelop to run ‘make check’ instead of just ‘make’.

    Since you are using automake (through KDevelop), you don’t need to write the ‘check’ target yourself. Instead, just edit your `Makefile.am` and set some variables:

     TESTS = ... 

    Please have a look at the automake documentation, ‘Support for test suites’ for further information.

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

Sidebar

Ask A Question

Stats

  • Questions 108k
  • Answers 108k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It's called "Hungarian Notation". As a developer (and data architect),… May 11, 2026 at 9:15 pm
  • Editorial Team
    Editorial Team added an answer You may need to "register" IIS for ASP.NET applications. As… May 11, 2026 at 9:14 pm
  • Editorial Team
    Editorial Team added an answer Here is some XSL that finds elements that start with… May 11, 2026 at 9:14 pm

Related Questions

I just recently started a new personal project, with a goal of having it
I've recently started work on a new project using EpiServer which I am totally
I've recently started work on a new project using PHP5 and want to use
I've recently started work on the Compact Framework and I was wondering if anyone

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.