JUnit Foundation is a lightweight collection of JUnit watchers, interfaces, and static utility classes that supplement and augment the functionality provided by the JUnit API.
Apache License 2.0
22
stars
6
forks
source link
Add unit tests to verify release of framework objects #96
I had to make significant revisions to resolve memory consumption issues caused by unmanaged retention of framework object references. To ensure that I don't introduce regressions in future revisions, I need to add unit tests to verify that all collected references are released at key points of execution for all supported scenarios:
Standard happy-path execution
Pass on automatic retry
Fail on automatic retry
Method-specific timeout
Rule-based timeout
Parameterized runner
JUnitParams runner
Theories runner
PowerMock runner
Checks for reference retention must be performed at relevant points in the flow of execution. This can probably be accomplished with a properly crafted watcher/listener class.
I had to make significant revisions to resolve memory consumption issues caused by unmanaged retention of framework object references. To ensure that I don't introduce regressions in future revisions, I need to add unit tests to verify that all collected references are released at key points of execution for all supported scenarios:
Checks for reference retention must be performed at relevant points in the flow of execution. This can probably be accomplished with a properly crafted watcher/listener class.