Module talk:UnitTests: Difference between revisions

Content deleted Content added
Line 22:
 
: I created [[Module:UnitTests/sandbox]] which right now only mixes logic and presentation in three places. I created [[Module talk:Citation/CS1/testcases2]] to make sure it still works and for comparison purposes. testcases2 uses 6.91 MB of memory and takes 3.964 seconds to process tests compared to testcases which uses 7.23 MB of memory and takes 4.933 seconds to process tests. Maybe with full separation of the logic and presentation the memory footprint and processing time can be decreased further. I think another approach to unit testing would be better, but that will require rewriting current tests, which like in the case of the citation module, could take a bit of effort to do. --<span style="font: bold 10pt 'courier new', comic, sans, ms;">[[User:Darklama|<font color="midnightblue">dark</font>]][[User_talk:Darklama|<font color="green">lama</font>]]</span> 15:11, 5 June 2013 (UTC)
 
== Test a string contains expected text ==
 
Please see [[Module talk:ScribuntoUnit#Test a string contains expected text]] for an enhancement request. --[[User:Derbeth|Derbeth]] [[User talk:Derbeth|<sup>talk</sup>]] 21:41, 1 January 2014 (UTC)