A tiny unit testing library for LiveCode

Posted  

I’ve started a tiny unit testing library project for LiveCode, just the minimum stuff I need for testing my own libraries. It is not fully featured but it kinda works!

There are two components for this library, one is the library itself which provides the unit testing routines and the other is a dashboard stack to help you run the tests. The dashboard stack is not needed but makes life easier.

The tests look like this:

Script Editor showing unit tests

Script Editor showing unit tests

You can see on the shot above, on lines 61 and 68 calls to affirm which asserts that a boolean is true.

The dashboard looks like this:

Tiny Tests Dashboard

Tiny Tests Dashboard

It is still early days but this could lead to safer libraries soon. Do you like this? Are you intested in such library? Drop me a note!

Did you enjoyed reading this content? Want to support me?

You can buy me a coffee at ko-fi.

Comments? Questions? Feedback?

You can reach out to me on Twitter, or Mastodon, Secure Scuttlebutt, or through WebMentions.

Mentions