A pragmatic walkthrough of writing Java tests for a Google Photos clone project, focusing on integration testing for ImageMagick-based thumbnail creation. Covers setting up JUnit 5 with AssertJ, writing a custom JUnit 5 annotation and ExecutionCondition to conditionally skip tests when ImageMagick is not installed, and asserting thumbnail file existence, size, and dimensions. The author openly discusses testing tradeoffs, choosing manual testing and partial coverage over full CI matrix setups with Docker containers for different ImageMagick versions, emphasizing real-world pragmatism over perfect test coverage.
•28m watch time
Sort: