Closed andywer closed 7 years ago
Difference to drool: It's about testing code in general. Drool is only for DOM operations in the browser.
Current state after ~2h of thinking and hacking:
The eagle has landed: https://github.com/andywer/leakage
Closing this idea 😊
There should be an easy way to test your code for memory leaks. Basically a straight-forward, generic way to write tests for memory inspection using memwatch.
Scenario:(Initial idea, suffers from some fundamental issues)memwatch
(https://github.com/marcominetti/node-memwatch) is used on your (existing) unit tests which are run multiple times each.Idea
Write memory-leakage tests as new test type. Set up environment using a
before
hook, write tests, finally heap snapshotting and leak detection.To Be Defined