developer unit testing

Author Message

Samuel Sauder

Tuesday 13 June 2006 10:46:32 am

Does anyone know or have interest in a testing feature that could be incorporated into Ezpublish for developers? I'm thinking in particular about something in relation this this project http://www.phpunit.de/wiki/Main_Page

Kristof Coomans

Wednesday 14 June 2006 12:02:54 am

Currently there are lots of dependencies between different library/kernel classes. eZ publish ( < 4 ) doesn't have the lose coupling benefit the eZ components have (you hardly can't use mock objects). Therefor I think it would be quite difficult to write good unit tests for the current eZ publish versions.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Samuel Sauder

Wednesday 14 June 2006 2:41:28 am

Thanks for the info

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 31 2025 04:33:56
Script start
Timing: Jan 31 2025 04:33:56
Module start 'layout'
Timing: Jan 31 2025 04:33:56
Module start 'content'
Timing: Jan 31 2025 04:33:57
Module end 'content'
Timing: Jan 31 2025 04:33:57
Script end

Main resources:

Total runtime0.9324 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1250151.2109
Module start 'layout' 0.00540.0026 739.335936.6328
Module start 'content' 0.00800.9235 775.9688923.8281
Module end 'content' 0.93150.0009 1,699.79698.0313
Script end 0.9324  1,707.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3307160.0002
Check MTime0.00130.1413160.0001
Mysql Total
Database connection0.00070.072810.0007
Mysqli_queries0.887395.1667570.0156
Looping result0.00050.0503550.0000
Template Total0.905297.120.4526
Template load0.00200.218620.0010
Template processing0.903296.867320.4516
Template load and register function0.00140.145010.0014
states
state_id_array0.00020.023310.0002
state_identifier_array0.00150.157420.0007
Override
Cache load0.00160.176090.0002
Sytem overhead
Fetch class attribute can translate value0.00050.057020.0003
Fetch class attribute name0.00190.205540.0005
XML
Image XML parsing0.00060.065120.0003
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00150.1625160.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs