We're currently looking into writing a webmin module for configuring a proprietary application on our appliance platform (currently targeting Turnkey Linux which includes webmin by default).

I have found the development wiki which has all kinds of useful information, but I can find nothing on testing.

I am interested in how we can unit test (if that is even possible) our module. What are the testing best practices? Is there a test harness we can make use of?