Page 1 of 1

GitHub action for running Busted tests in Mudlet

Posted: Fri May 20, 2022 12:59 am
by demonnic
I got into more detail on my blog at https://demonnic.com/?p=223 but the tl;dr is this GitHub Action will download the latest version of Mudlet and configure it for running tests, then runs the tests inside Mudlet itself, allowing you to test using Mudlet's full API in its actual running environment.

I based this on the portion of the Mudlet build workflow that runs our Busted tests for Mudlet itself, but added a pretest package install hook so you can install your package before the tests are run, and it doesn't rely on a magic profile built in to Mudlet itself but rather has one stored it copies into place for use.

The excuses for not testing dwindle.