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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:03:40+00:00 2026-06-16T05:03:40+00:00

I often listen people talk about unit test. But I don’t know the exact

  • 0

I often listen people talk about unit test. But I don’t know the exact apperance of it, especially in Linux C code. I know that for VisualStudio this kind of tool will provide some template? to do unit test, but how to make one for Linux general C code. Could anyone show me an example? Or maybe show me how to do TDD for Linux C code? It’s mysterious for me. Thanks!

  • 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-16T05:03:41+00:00Added an answer on June 16, 2026 at 5:03 am

    Unit Testing is a type of automated test which tests individual units of functionality. It’s especially useful during initial development and for ensuring that changes don’t break your program, which is invaluable when you refactor. You can read more here:
    http://en.wikipedia.org/wiki/Unit_testing

    Unit testing became a big deal with Extreme Programming and Test Driven Development. With that, a large number of unit testing frameworks sprung up.

    Which answers your second question. To do unit testing in C, you’ll need a unit testing framework for the language. Fortunately, there are a variety available that you can just use, so you needn’t worry about creating your own:
    http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#C

    If you choose to do your own, you’ll need to find a way to attach tests with units of functionality, ensure they are all run when you run your program, and have a way to remove them easily for deployment. Macros will likely be a key.

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

Sidebar

Related Questions

Often times in unit tests I see people testing very simple things that realistically
I listen to the podcast java posse, on this there is often discussion about
Often we have to use some of the methods which don't return anything useful.
I often listen to music while I code. Switching songs while in the middle
I'd like to know more about the different ways of solving Single Sign-On and
In embedded we often listen word like low footprint library. so how can i
I'm panning to a nearby location but the panTo function often jumps there since
I listen a number of podcasts. Often I hear the expression "Order line" in
Often I create Child threads within the main() as Thread thread = new Thread(new
Often times I write some SQL like this: string sql = @ -- Multi-line

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.