Subscribe
Sign in
Home
Coding
Software Engineering
Testing
Databases
Distributed Systems
Reliability
Soft Skills & Communication
Index
Testing
Code Coverage
When a measure becomes a target, it ceases to be a good measure.
Dec 19, 2024
5
Share this post
The Coder Cafe
Code Coverage
Copy link
Facebook
Email
Notes
More
Avoiding Logic in Tests
A test shouldn't mirror the code logic it’s meant to validate.
Dec 18, 2024
6
Share this post
The Coder Cafe
Avoiding Logic in Tests
Copy link
Facebook
Email
Notes
More
2
Test-Driven Development (TDD)
TDD is a personal choice, not a measure of test quality.
Dec 17, 2024
4
Share this post
The Coder Cafe
Test-Driven Development (TDD)
Copy link
Facebook
Email
Notes
More
4
Test Behavior, Not Implementation
By focusing on behavior, our test remains the same, unaffected by changes to the underlying implementation.
Dec 16, 2024
Â
•
Â
Teiva Harsanyi
3
Share this post
The Coder Cafe
Test Behavior, Not Implementation
Copy link
Facebook
Email
Notes
More
Unit Tests As Documentation
Unit tests are always in sync with the code, making them a poweful tool for up-to-date documentation.
Oct 17, 2024
Â
•
Â
Teiva Harsanyi
16
Share this post
The Coder Cafe
Unit Tests As Documentation
Copy link
Facebook
Email
Notes
More
Line vs. Branch Coverage
In this example, branch coverage will detect that our test only covers 50% of the possible branches.
Oct 16, 2024
Â
•
Â
Teiva Harsanyi
5
Share this post
The Coder Cafe
Line vs. Branch Coverage
Copy link
Facebook
Email
Notes
More
1
10 Unit Test Properties
Narrow in scope, validating the correctness of individual pieces of code rather than the correctness of the system as a whole.
Oct 15, 2024
Â
•
Â
Teiva Harsanyi
7
Share this post
The Coder Cafe
10 Unit Test Properties
Copy link
Facebook
Email
Notes
More
Common Arguments Against Unit Tests
Skipping unit tests might seem like a time-saver, but it often leads to greater problems later.
Oct 14, 2024
Â
•
Â
Teiva Harsanyi
5
Share this post
The Coder Cafe
Common Arguments Against Unit Tests
Copy link
Facebook
Email
Notes
More
Share
Copy link
Facebook
Email
Notes
More
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts