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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:08:30+00:00 2026-05-11T06:08:30+00:00

I mainly develop in native C++ on Windows using Visual Studio. A lot of

  • 0

I mainly develop in native C++ on Windows using Visual Studio.

A lot of times, I find myself creating a new function/class or whatever, and I just want to test that piece of logic I just wrote, quickly.

A lot of times, I have to run the entire application, which sometimes could take a while since there are many connected parts.

Is there some sort of tool that will allow me to test that new piece of code quickly without having to run the whole application?

i.e.

Say I have a project with about 1000 files, and I’m adding a new class called Adder. Adder has a method Add( int, int );

I just want the IDE/tool to allow me to test just the Adder class (without me having to create a new project and write a dummy main.cpp) by allowing me to specify the value of the inputs going into Adder object. Likewise, it would be nice if it would allow me to specify the expected output from the tested object.

What would be even cooler is if the IDE/tool would then ‘record’ these sets of inputs/expected output, and automatically create unit tester class based on them. If I added more input/output sets, it would keep building a history of input/outputs.

Or how about this: what if I started the actual application, feed some real data to it, and have the IDE/tool capture the complete inputs going into the unit being tested. That way, I can quickly restart my testing if I found some bugs in my program or I want to change its interface a bit. I think this feature would be so neat, and can help developer quickly test / modify their code.

Am I talking about mock object / unit testing that already exists?

Sidenote: it would be cool if Visual Studio debugger has a ‘replay’ technology where user can step back to find what went wrong. Such debugger already exists here: http://www.totalviewtech.com/

  • 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-11T06:08:31+00:00Added an answer on May 11, 2026 at 6:08 am

    It’s very easy to get started with static unit testing in C++ – three lines of code.

    VS is a bit poor in that you have to go through wizards to make a project to build and run the tests, so if you have a thousand classes you’d need a thousand projects. So for large projects on VS I’ve tended to organised the project into a few DLLs for independent building and testing rather than monolithic ones.

    An alternative to static tests more similar to your ‘poke and dribble’ script could be done in python, using swig to bind your code to the interpreter, and python’s doc tests . I haven’t used both together myself. Again, you’d need a separate target to build the python binding, and another to run the tests, rather than it being just a simple ‘run this class’ button.

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

Sidebar

Ask A Question

Stats

  • Questions 89k
  • Answers 89k
  • 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 Yes: <script type="text/javascript"> var counter = 0; </script> and <button… May 11, 2026 at 5:59 pm
  • Editorial Team
    Editorial Team added an answer A SplitContainer implements ContainerControl, so you could check for either… May 11, 2026 at 5:59 pm
  • Editorial Team
    Editorial Team added an answer First, set the UIScrollView's contentSize to have a width that… May 11, 2026 at 5:59 pm

Related Questions

Welcome! I very enjoyed programming artificial intelligence in my studies - neural networks, expert
In the near future i will get some 2 weeks for moving and improving
I've been developing Web applications for a while now and have dipped my toe
I've seen a good bit of setuptools bashing on the internets lately. Most recently,

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.