GitHub action for running Busted tests in Mudlet

Share your scripts and packages with other Mudlet users.
Post Reply
User avatar
demonnic
Posts: 812
Joined: Sat Dec 05, 2009 3:19 pm

GitHub action for running Busted tests in Mudlet

Post 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.

Post Reply