unit tests

What UI behavior is actually worth testing?

I understand unit testing business logic, since it covers code we wrote ourselves. Testing a custom, self-contained component—such as a data table—also seems worthwhile because its behavior is…

What Does Mocking Mean in Testing?

I'm trying to wrap my head around the term 'mocking' because it seems to have different meanings in various contexts. For instance, when we talk about 'mocking frameworks'…

Should You Use Randomness in Unit Tests?

I'm curious about the use of randomness in unit tests. Imagine you have a test that performs a specified number of operations—let's say 100. You want to ensure…