50,461 questions
126
votes
12
answers
42k
views
JUnit vs TestNG [closed]
At work we are currently still using JUnit 3 to run our tests. We have been considering switching over to JUnit 4 for new tests being written but I have been keeping an eye on TestNG for a while now. ...
45
votes
9
answers
12k
views
What is Object Mocking and when do I need it?
Many people use Mock Objects when they are writing unit tests. What is a Mock Object? Why would I ever need one? Do I need a Mock Object Framework?
93
votes
12
answers
63k
views
How to set up unit testing for Visual Studio C++ [closed]
I'm having trouble figuring out how to get the testing framework set up and usable in Visual Studio 2008 for C++ presumably with the built-in unit testing suite.
Any links or tutorials would be ...
67
votes
15
answers
60k
views
Choosing a static code analysis tool [closed]
I'm working on a project where I'm coding in C in a UNIX environment. I've been using the lint tool to check my source code. Lint has been around a long time (since 1979), can anyone suggest a more ...
30
votes
5
answers
4k
views
How to get started writing a code coverage tool? [closed]
Looking for books or other references that discuss actually how to write a code coverage tool in Java; some of the various techniques or tricks - source vs. byte code instrumentation.
This is for a ...
29
votes
5
answers
12k
views
How to use combinations of sets as test data
I would like to test a function with a tuple from a set of fringe cases and normal values. For example, while testing a function which returns true whenever given three lengths that form a valid ...