Wikipedia talk:Lua unit testing

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconEssays Low‑impact
WikiProject iconThis page is within the scope of WikiProject Wikipedia essays, a collaborative effort to organise and monitor the impact of Wikipedia essays. If you would like to participate, please visit the project page, where you can join the discussion. For a listing of essays see the essay directory.
LowThis page has been rated as Low-impact on the project's impact scale.
Note icon
The above rating was automatically assessed using data on pageviews, watchers, and incoming links.

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)[reply]