Working on a modder’s resource, CobbAPI, which will offer other mod authors access to a lot of the stuff I’ve reverse-engineered and used in my own mods. With so many APIs to offer, I need a nice way to test them in a variety of situations.
When making APIs for my own use, I would generally create a testing cell with custom scripted unit tests. However, tonight I had the idea of making a “test suite” MCM that lets me configure and fire calls to each API.
It’s a bit of an ugly solution… Under the hood, each API is defined similarly to MCM state options, with getters for parameter information and return types, and an interface for calling any individual method. However, it’s something that’ll be very easy to automate (though I’m currently filling the data in manually for testing’s sake). In fact, once I do automate it, I could even release the test suite itself as a modder’s resource!
(I could also release it alongside CobbAPI as a sort of downloadable demo.)





