Handle coverage for long-running daemons
masterLuaCov normally saves statistics upon normal program termination. For daemons or processes that do not terminate normally, you must enable periodic saving to prevent data loss.
Option 1: Using the .luacov config
Set tick = true in your .luacov file.
Option 2: Using the command line (Unix)
Run your script using the luacov.tick module instead of the standard luacov module:
#!/usr/bin/env lua -lluacov.ticktick = true