Jochen Joswig, in his DevGreenOps talk at the OOP Conference, outlined methods for sustainable testing. The core idea involves setting up a testing strategy that minimizes the number of executed tests, thereby reducing both time and energy consumption. This approach aligns with principles of minimalism and efficiency in software development.
A key recommendation is to design testing strategies for fast and early failure. If a unit test fails, subsequent integration or end-to-end tests can be skipped, saving resources. Joswig also suggested executing only tests relevant to changed code, particularly in monorepo environments. For example, if only frontend code is modified, backend tests are not necessary.
To further improve test setups, Joswig proposed tracking the energy consumption of individual tests. This data can be fed into observability stacks to flag methods or runs exceeding energy thresholds, prompting re-engineering for performance optimization. If direct energy consumption tracking is not possible, proxy metrics like MB transferred, time, CPU, and memory utilization can be used.
Joswig recommended using static code analysis to identify inefficiencies, such as backend calls or database queries within loops. He mentioned Creedengo, an open-source SonarQube plugin supporting Java, Python, JavaScript, and C#, as a tool for this purpose. Closed-source alternatives may offer broader support for detecting code inefficiencies.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Jochen Joswig presented strategies for sustainable testing at the OOP Conference, focusing on reducing unnecessary test executions and optimizing resource use. These methods aim to decrease testing time and energy consumption by running only essential tests and those affected by code changes.