Unit Testing in Scriptable

Has anyone tried implementing unit tests or Test-Driven Development patterns for scripts in Scriptable? Perhaps using some of the JavaScript unit testing frameworks?

I’d like to avoid writing my own or having to manage a Scriptable-specific port of the existing frameworks, so I’m trying to save myself some time.

1 Like

I’m familiar with Jasmine. Using that inside of Scriptable would be tough as it needs a browser to run the tests.

I’m just writing basic tests in each file at the bottom, that I turn on/off with a Boolean variable at top. Not pretty, but gets the job done :slight_smile: