UnitTest

Author Message

Ɓukasz Serwatka

Monday 22 November 2004 10:47:18 pm

Hi,

Does eZ crew use UnitTest (elements of XP) for testing classes. Are there any public view for results of this tests. It could be very useful for testing our user handler class. We are working on integration IBP forum with eZ publish.

Thanks for any help or suggestions.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jan Borsodi

Friday 26 November 2004 12:15:24 am

Hi,

Yes, we use Unit testing for some of our classes, e.g. for the template compiler. We also have a PHP shell script to run all the various tests and show the result.

Currently this unit test system is only bundled with the unstable releases (alpha, beta, rc), but if there is much interest we could probably find a way to package this.
If you have an unstable release you can look in the <i>tests</i> subdirectory of it and you will find our current tests and the test framework.

e.g.

./tests/testunits.php eztemplate

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 19 2025 00:14:33
Script start
Timing: Jan 19 2025 00:14:33
Module start 'layout'
Timing: Jan 19 2025 00:14:33
Module start 'content'
Timing: Jan 19 2025 00:14:34
Module end 'content'
Timing: Jan 19 2025 00:14:34
Script end

Main resources:

Total runtime0.9351 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.7891152.6094
Module start 'layout' 0.00530.0029 740.398439.3906
Module start 'content' 0.00810.9254 779.7891532.9609
Module end 'content' 0.93360.0015 1,312.75008.2031
Script end 0.9351  1,320.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3496160.0002
Check MTime0.00130.1424160.0001
Mysql Total
Database connection0.00070.077410.0007
Mysqli_queries0.884894.6199540.0164
Looping result0.00050.0582520.0000
Template Total0.901296.420.4506
Template load0.00220.230320.0011
Template processing0.899196.146820.4495
Template load and register function0.00010.012610.0001
states
state_id_array0.00090.092310.0009
state_identifier_array0.00170.181720.0008
Override
Cache load0.00180.1884150.0001
Sytem overhead
Fetch class attribute can translate value0.00050.052520.0002
Fetch class attribute name0.00220.236040.0006
XML
Image XML parsing0.00120.124620.0006
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00230.2432250.0001
String conversion0.00000.000740.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs