Module talk:UnitTests: Difference between revisions

Content deleted Content added
Table of Contents: new section
m Fixed obsolete html tag Lint errors.
Line 21:
:{{replyto|Tgr}} didn't have time to fully read it, would it be much work on the test cases to convert them to your new module ? —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 20:53, 4 June 2013 (UTC)
 
: 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|<fontspan colorstyle="color:midnightblue;">dark</fontspan>]][[User_talk:Darklama|<fontspan colorstyle="color:green;">lama</fontspan>]]</span> 15:11, 5 June 2013 (UTC)
 
== Test a string contains expected text ==