Module talk:UnitTests: Difference between revisions

Content deleted Content added
Test group order: how do I do that?
Dcoetzee (talk | contribs)
Line 2:
 
At the moment, the test groups appear on the page in random order. Is there any way of getting them to appear in the order that they are defined? — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 15:30, 3 April 2013 (UTC)
:As far as I know it's not possible to determine the order in which tests were defined, unless perhaps the test framework reads the module page (Lua source) itself. It's also not clear this is always the desired behaviour. There are a couple other approaches: always using alphabetical order, and naming your tests alphabetically in order using numbers; or giving you an option to explicitly specify the order. [[User:Dcoetzee|Dcoetzee]] 17:09, 3 April 2013 (UTC)
 
==Don't treat the result off a call as Wikitext==