
How should I test my TEST code? - Software Engineering Stack Exchange
I understand how to test my normal code, but how should I test my test code to make sure it can effectively find and report errors when they are present? I personally have been stupid enough to …
Is there such a thing as having too many unit tests?
May 4, 2017 · 80 If you have worked on large code bases created using Test Driven Development, you would already know there can be such a thing as too many unit tests.
Is it normal to spend as much, if not more, time writing tests than ...
Oct 14, 2015 · Anecdotal, but I find I spend roughly as much time writing tests as writing code when I TDD. It's when I slip up and write tests after the fact that I spend more time on the tests than the code.
testing - What to cover with integration tests? - Software Engineering ...
Dec 21, 2023 · 11 Unit tests should test the behavior of your core code. They should be deterministic, parallelizable, and fast. Integration tests should test that the rest of the system, that you had to cut …
Managing code: Unit tests with source or separate?
Jul 24, 2015 · The standard practice in the Objective C world has been to follow that laid down in the Java world when it comes to code management. i.e. Your application source code goes in one …
testing - How to effectively unit test code with lots of database ...
Jun 29, 2021 · How to effectively unit test code with lots of database dependencies? Ask Question Asked 4 years, 5 months ago Modified 4 years, 5 months ago
Should the unit tests be independent of the implementations
Feb 17, 2024 · Your example code spectacularly fails to be unit testable code precisely because you provided no such API. This code is only testable with integration tests or obnoxious mocking. A unit …
testing - How exactly should unit tests be written without mocking ...
Nov 27, 2018 · 84 the point of unit tests is to test units of code in isolation. Martin Fowler on Unit Test Unit testing is often talked about in software development, and is a term that I've been familiar with …
unit testing - Unexpected Code Coverage Reduction - Software ...
Nov 8, 2019 · The code coverage percentage is a good measure of this only if your code always grows, which is unfortunate. Another way to put it: whenever you manage to reduce the amount of lines in …
Why to let / not let developers test their own work
15 Developers MUST test their work. It is an implied responsibility. I'm assuming you don't have a team dedicated for doing the tests based from your statement. However, having a team dedicated for …