You need to be logged in to get access to the forums. You can do so here

Unit testing tips and tricks

  • Currently 4 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Sunday 21 November 2010 02:19

by Jean-Luc Chassaing  | 6 comments

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.

writing and performing tests

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Sunday 14 November 2010 01:19

by Jean-Luc Chassaing  | 1 comment

In my last post, I described how to get a testing environment for your eZ Publish developments. This was in my previous post.

Now it's time to go further on write your first test and run it.

This is not a PHPUnit tutorial the goal is to give you a first step and some clues to avoid brainstorming gapes.

How about unit testing your code

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Saturday 13 November 2010 12:14

by Jean-Luc Chassaing  | 1 comment

I've been working on that for a few days and I'm quite proud to say it rocks...

Got a great idea

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Saturday 02 October 2010 12:37

by Jean-Luc Chassaing  | 1 comment

Well in fact a real problem....

A new project and new problems to deal with.

Tags

Archive

Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
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 05:08:36
Script start
Timing: Jan 18 2025 05:08:36
Module start 'layout'
Timing: Jan 18 2025 05:08:36
Module start 'content'
Timing: Jan 18 2025 05:08:36
Module end 'content'
Timing: Jan 18 2025 05:08:36
Script end

Main resources:

Total runtime0.1872 sec
Peak memory usage8,192.0000 KB
Database Queries133

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1875152.6094
Module start 'layout' 0.00550.0026 741.796939.3984
Module start 'content' 0.00810.1779 781.1953571.7422
Module end 'content' 0.18600.0012 1,352.937520.2109
Script end 0.1872  1,373.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00301.6290160.0002
Check MTime0.00130.6766160.0001
Mysql Total
Database connection0.00070.380410.0007
Mysqli_queries0.107657.48611330.0008
Looping result0.00090.49811270.0000
Template Total0.019810.630.0066
Template load0.00211.102630.0007
Template processing0.019210.270930.0064
Template load and register function0.00010.066710.0001
states
state_id_array0.00392.095950.0008
state_identifier_array0.00231.201960.0004
Override
Cache load0.00160.8418190.0001
Sytem overhead
Fetch class attribute name0.00170.884790.0002
Fetch class attribute can translate value0.00040.238110.0004
class_abstraction
Instantiating content class attribute0.00000.010290.0000
XML
Image XML parsing0.00040.216410.0004
General
dbfile0.00100.5153200.0000
String conversion0.00000.004240.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/blog.tplextension/sevenx/design/simple/override/templates/full/blog.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezkeyword.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezkeyword.tplEdit templateOverride template
1tagcloud/tagcloud.tpl<No override>extension/community_design/design/suncana/templates/tagcloud/tagcloud.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs