Sunday 21 November 2010 2:19:22 pm - 6 replies

Introduction

Ok, I 've been taken by other problems but it's time for me to give you the last post and yet the most important part of three, dedicated to unit testing on eZ Publish.

» Read full blog post

Author Message

Thiago Campos Viana

Monday 22 November 2010 3:41:41 am

A bigger post could be about php continuous integration.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Nicolas Pastorino

Monday 22 November 2010 3:49:04 am

Thanks for sharing Jean-Luc, keep-up !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Jean-Luc Chassaing

Wednesday 24 November 2010 12:57:30 pm

That's a good idea.

In fact I was thinking there a cron to perform the tests every day or hour...

Well so this cron script would generate a report and this daily report could be neatly displayed in the back-office.

Nicolas Pastorino

Thursday 25 November 2010 12:20:43 am

Guys,

For your information, a topic is being discussed about this right now : http://share.ez.no/forums/general/managing-a-project-with-git

Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

David Linnard

Wednesday 22 December 2010 5:24:10 am

Hi Jean-Luc,

Thanks for a great set of posts. I've been looking at using Selenium RC to automate UI tests through PHP Unit. Since the PHPUnit implementation of Selenium RC extends the PHPUnit_Framework_TestCase (the same as the ezpTestCase) though, it appears that there is currently no way of tying Selenum RC tests into an eZ Publish site. Not sure if this is something you've had experience of at all?

David

David Linnard
www.onequarterenglish.co.uk

Neo Jackson

Wednesday 23 March 2011 12:57:53 am

It is great to have an informative blog post sharing about the unit testing tips and tricks. Thanks a lot.

You must be logged in to post messages in this topic!

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 17 2025 23:46:03
Script start
Timing: Jan 17 2025 23:46:03
Module start 'layout'
Timing: Jan 17 2025 23:46:03
Module start 'content'
Timing: Jan 17 2025 23:46:03
Module end 'content'
Timing: Jan 17 2025 23:46:03
Script end

Main resources:

Total runtime0.1781 sec
Peak memory usage4,096.0000 KB
Database Queries85

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 587.9141152.6250
Module start 'layout' 0.00430.0026 740.539139.4531
Module start 'content' 0.00690.1698 779.9922828.8438
Module end 'content' 0.17670.0013 1,608.835922.3984
Script end 0.1780  1,631.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00301.6830160.0002
Check MTime0.00130.7511160.0001
Mysql Total
Database connection0.00060.326810.0006
Mysqli_queries0.103758.2281850.0012
Looping result0.00090.4911830.0000
Template Total0.152285.520.0761
Template load0.00231.278120.0011
Template processing0.150084.210920.0750
Template load and register function0.00010.083110.0001
states
state_id_array0.00180.987820.0009
state_identifier_array0.00191.067030.0006
Override
Cache load0.00201.0987280.0001
Sytem overhead
Fetch class attribute name0.00181.0335110.0002
Fetch class attribute can translate value0.00050.263550.0001
class_abstraction
Instantiating content class attribute0.00000.0142120.0000
XML
Image XML parsing0.00402.252450.0008
General
dbfile0.00301.6958360.0001
String conversion0.00000.003340.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.tplforum_topic/full.tplextension/community_design/design/suncana/override/templates/forum_topic/full.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs