Subscribe
Sign in
Home
Programming
Testing
Distributed Systems
Reliability
Systems
Beyond Code
Inner Brew
📌 Index
💬 Discord
Testing
Property-Based Testing
Traditional tests don’t guarantee a bug-free system; a passing test only confirms that the tested scenario behaves as expected.
May 21
Â
•
Â
Teiva Harsanyi
3
Eventually Green Tests (April Fool’s Joke)
With enough time, 97% of failing tests will eventually pass or become irrelevant.
Apr 1
Â
•
Â
Teiva Harsanyi
4
3
Code Coverage
When a measure becomes a target, it ceases to be a good measure.
Dec 19, 2024
Â
•
Â
Teiva Harsanyi
5
Avoiding Logic in Tests
A test shouldn't mirror the code logic it’s meant to validate.
Dec 18, 2024
Â
•
Â
Teiva Harsanyi
6
3
Test-Driven Development (TDD)
TDD is a personal choice, not a measure of test quality.
Dec 17, 2024
Â
•
Â
Teiva Harsanyi
5
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
4
Unit Tests As Documentation
Unit tests are always in sync with the code, making them a powerful tool for up-to-date documentation.
Oct 17, 2024
Â
•
Â
Teiva Harsanyi
19
1
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
6
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
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
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts