Ensure to use the last version of compiled code when compile on save is used
I've added code to detect if compile on save is running (to be able to not rerunning again).
The first waiting seems very long.
NetBeans was caching file changes and plugin was waiting for external
file scan before triggering tests.
Change on compiled file was totally refactored. But I've not finished :