Wikipedia talk:Lua unit testing
This project page does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
Well, it's a start... but for example, how do you implement a log file in Lua? I assume you mean something more like you #invoke with debug=yes and it returns the log file with or instead of the usual output? But to make that work in large integrated applications we'd have to standardize how to return the log file so that different lua modules and templates could work together with it, wouldn't we?
I've seen the test harnesses ... they look like they took some effort to code, but they're pretty standard. I'm thinking if a module is presently working, there should be a way to enter a much simpler text, just the calls, and write a different Lua script to subst it into a standard Lua unit test module (defining the present answers as the correct behavior), which you can then save per [1]. (I was almost about to try that but I don't know when I'll get around to it) Wnt (talk) 18:55, 15 March 2013 (UTC)