taskMapOSMatic - Tasks: task #10094, A unittest framework for...

 
 

task #10094: A unittest framework for ocitysmap, covering i18n classes

Submitter:  Jeroen van Rijn <jvrnix>
Submitted:  Wed 13 Jan 2010 07:58:51 PM UTC
   
 
Should Start On:  Wed 13 Jan 2010 12:00:00 AM UTC Should be Finished on:  Wed 13 Jan 2010 12:00:00 AM UTC
Category:  ocitysmap Priority:  * 5 - Normal
Status:  In Progress Privacy:  Public
Assigned to:  jvrnix Percent Complete:  0%
Open/Closed:  Open Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 13 Jan 2010 07:58:51 PM UTC, original submission:  

I'm working on a unittest framework (and accompanying set of tests) for ocitysmap.

- The framework will allow the testing of regressions and improvements of the various i18n classes in ocitysmap/i18n.py

- The framework will in time be expanded to additionally allow for finding regressions in the rendering itself
-- Using for example a separate database covering a few cities and rendering cities and bounding boxes from it, in the knowledge that the daily diffs won't change the output and that any image who's checksum doesn't match a test case has had its output changed for another reason.

- The framework will use standard python libraries: unittest, optparse, logging

Calling convention is flexible, but I'm thinking of something like:

/ocitysmap/location/runtests --suite i18n --locale <fr_FR, all> ---streetnames <fr_FR, all>

You can then for example run the French i18n class against all the unit tests of all languages, in case someone wants to render a map of London with French localisation. You could also run all languages against all languages.

More on that later as the framework starts to take shape.

Jeroen van Rijn <jvrnix>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jvrnix (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code