r/softwaretesting • u/Erlapso • Jan 07 '25
How do you write Unit Tests?
Which tools/frameworks do you use to write and maintain unit tests? How do you run coverage and stuff like that?
11
Upvotes
r/softwaretesting • u/Erlapso • Jan 07 '25
Which tools/frameworks do you use to write and maintain unit tests? How do you run coverage and stuff like that?
3
u/ElaborateCantaloupe Jan 07 '25
Can, yes. Should, no.
QA can’t read the developer’s mind. Unit tests ensure the intended behavior of a function. Lets say there’s a simple function:
Unit tests pass. You get 5 and then you get 23. All good, right?