https://github.com/stevegrunwell/better-tests
Slides for "Getting the Most From Your Test Suite"
https://github.com/stevegrunwell/better-tests
phpunit reveal-js slides testing
Last synced: 12 days ago
JSON representation
Slides for "Getting the Most From Your Test Suite"
- Host: GitHub
- URL: https://github.com/stevegrunwell/better-tests
- Owner: stevegrunwell
- Created: 2026-05-17T00:06:29.000Z (28 days ago)
- Default Branch: main
- Last Pushed: 2026-05-18T01:52:32.000Z (27 days ago)
- Last Synced: 2026-05-18T03:50:33.838Z (27 days ago)
- Topics: phpunit, reveal-js, slides, testing
- Language: CSS
- Homepage: https://stevegrunwell.com/slides/better-tests
- Size: 6.85 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting the Most From Your Test Suite
Automated testing is crucial for long-term maintainability, but not all tests are made equal: a brittle test—tightly coupled to its implementation—can be worse than having no test at all!
If your test suite is more of a hindrance than a helper, you may be suffering from "Leadership said we have to write tests"-itis, a common ailment across the engineering community. Fortunately, this can be treated by taking the test suite you (might) already have and making it work *for* you instead of holding you back!
In this session, we'll analyze the characteristics of "good" and "bad" unit tests and how we can massage the latter into the former. Topics of discussion will include test organization, strict types, fixtures, test doubles, and the true value of code coverage as a metric. Examples use PHPUnit as the test runner, but the lessons are broadly applicable across test runners and languages. Some testing experience is encouraged, but not required.
**✨ [View slides](https://stevegrunwell.github.io/better-tests) ✨**
## Resources
* [Available PHPUnit assertions](https://docs.phpunit.de/en/12.5/assertions.html)
* [PHPUnit.expert](https://phpunit.expert/articles/) - PHPUnit insights from Sebastian Bergmann, the author of PHPUnit
* [The Five Types of Test Doubles & How to Create Them in PHPUnit](https://jmauerhan.wordpress.com/2018/10/04/the-5-types-of-test-doubles-and-how-to-create-them-in-phpunit/) by Jessica Mauerhan
## Presentation History
* [PHP Tek 2026](https://phptek.io) — May 21, 2026 ([Joind.in](https://joind.in/talk/cb4cd), [PDF](https://github.com/stevegrunwell/better-tests/releases/download/phptek-2026/slides.pdf))