New answers tagged unit-testing
-1
votes
How to test the tests?
A unit test is correct if it passes correct application code and fails incorrect application code.
If your unit tests are written before you have functional application code then your unit tests ...
-1
votes
How to test the tests?
Other suggest to "write small and error-prone tests". That is imho reasonable default. I will provide two more things, which can improve quality of tests, or at least provide some metrics ...
0
votes
Does TDD formally use black box testing to supplement unit tests?
Much like the "field of testing" development, one kind of testing never really excludes another kind of testing.
As long as you follow the testing approach, you can test your software in ...
1
vote
How to write my own unit test?
You can use this header file:
https://github.com/xiaochun888/CppUnitTestExpress
It is easy to be integrated or extended into your application, your example will be possible to write here:
#include &...
7
votes
Accepted
Why are sealed classes not allowed to be mocked?
Mocking a class usually works by using reflection to construct a subclass which has methods and properties that do nothing (or whatever is required for the mock).
"Sealed" classes cannot be ...
Top 50 recent answers are included
Related Tags
unit-testing × 1755testing × 463
tdd × 345
c# × 186
integration-tests × 145
mocking × 135
java × 113
design × 87
python × 66
c++ × 59
object-oriented × 53
dependency-injection × 52
.net × 50
javascript × 48
programming-practices × 47
php × 45
refactoring × 42
continuous-integration × 42
design-patterns × 38
test-coverage × 36
bdd × 35
database × 28
integration-testing × 28
architecture × 27
code-quality × 24