[JW Lua] Unit testing for JW Lua

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Fri Aug 1 11:08:27 CEST 2014


Hello all!

I'm currently creating a suit of unit testing scripts for JW Lua, which 
is also a task that Lua is particularly well-suited for. If you know 
"Unit Tests" from used in concepts such as "Agile Software Development", 
you know what I'm talking about. Otherwise, unit testing is performed to 
make sure that a piece of code actually behaves the way it is meant to 
behave.

The first thing I've done is to make test for the properties in JW Lua. 
The JW Lua properties get tested for:
* That the property exists
* That the property also have a getter and setter method available
* That the property are returning the expected Lua type
* That the property can be loaded, set and saved correctly in Finale

The benefits for this kind of unit testing are huge for the JW Lua user:
* It can quickly test that properties works correctly on any tested 
Finale version
* It will quickly and accurately report the bugs found in JW Lua, the 
PDK Framework or in Finale.
* It will act as a fast guardian against future unintended changes to JW 
Lua or Finale

I hope to be able to post the testing scripts on the site as I post new 
betas.


Best regards,

Jari Williamsson





More information about the JWLua mailing list