Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tools for automatically generating unit tests for C++?

We have a large amount of legacy C++ code in shared libraries that are used on dozens of products. Ignoring the pros and cons of automatically generating tests (that's a discussion for another day), does anyone have any recommendations for a tool that would analyse the source and generate a set of tests to exercise that code?

Ideally it would be a Windows tool, Linux might be okay if absolutely necessary.

like image 720
Mendokusai Avatar asked Jan 24 '09 01:01

Mendokusai


People also ask

How do you automatically generate unit tests?

To generate unit tests, your types must be public. Open your solution in Visual Studio and then open the class file that has methods you want to test. Right-click on a method and choose Run IntelliTest to generate unit tests for the code in your method. IntelliTest runs your code many times with different inputs.

What is tool used for automated unit test?

Answer: Selenium is a UI Functional testing tool and is used for web-based applications. It automates User interface testing through different language bindings and can run tests on multiple browsers and OS combinations.

Which tool can be used to automate internal and unit testing?

ABAP Unit ABAP Unit is a testing tool used for automatic and manual test processes. It has both a free version as well as a commercial version, just like Embunit. The entire testing process from programming to implementation can be done in ABAP, allowing the user to scrutinize a unit of code for errors.

Can unit test cases be automated?

Unit testing can be done manually but is usually automated. Unit testing is a part of the test-driven development (TDD) methodology that requires developers to first write failing unit tests. Then they write code in order to change the application until the test passes.


1 Answers

I've heard Parasoft mentioned a few times. I've never used their products, but the article "Change Software Without Fear" (written by one of their employees) covers automatic test generation ("behavioral regression testing," they call it) in a non-salesy fashion and touches briefly on their software.

like image 98
Josh Kelley Avatar answered Oct 08 '22 01:10

Josh Kelley