Unit Tests

Author Message

Harry Fuecks

Monday 30 June 2003 3:07:28 am

Not sure if you're using some kind of unit test framework. Wondering, if you are, whether it would be worth publishing the test scripts? Might be a really good way for us to help you, running the test scripts on various platforms.

If not, there's one unit test framework I've been really impressed with which is SimpleTest, which includes the ability to create Mock Objects and also has some sort of web testing (i.e. test your HTML).

Available on SF at http://sourceforge.net/projects/simpletest/
Also - http://www.lastcraft.com/simple_test.php - the author does a really good job of explaining how to use it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:16:04
Script start
Timing: Jan 18 2025 10:16:04
Module start 'layout'
Timing: Jan 18 2025 10:16:04
Module start 'content'
Timing: Jan 18 2025 10:16:04
Module end 'content'
Timing: Jan 18 2025 10:16:04
Script end

Main resources:

Total runtime0.0213 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.7891152.6094
Module start 'layout' 0.00760.0039 740.398439.3984
Module start 'content' 0.01150.0072 779.796985.1797
Module end 'content' 0.01870.0026 864.976630.3047
Script end 0.0212  895.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003516.3481140.0002
Check MTime0.00167.5947140.0001
Mysql Total
Database connection0.00104.780010.0010
Mysqli_queries0.003616.980030.0012
Looping result0.00000.150110.0000
Template Total0.00219.810.0021
Template load0.00136.077610.0013
Template processing0.00083.670810.0008
Override
Cache load0.00094.440510.0009
General
dbfile0.00146.487780.0002
String conversion0.00000.069540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs