Changes between Version 2 and Version 3 of GitHubTracPluginTests

Show
Ignore:
Timestamp:
09/15/10 06:03:50 (11 years ago)
Author:
cotto
Comment:

flesh out most of the tests

Legend:

Unmodified
Added
Removed
Modified
  • GitHubTracPluginTests

    v2 v3  
    4747 1. '''Verify that Trac does not need to be upgraded''' 
    4848 
     49=== incorrect revmap === 
     50 
     51''The plugin will fail gracefully if the revmap is broken.'' 
     52 
     53Procedure:  
     54 1. Start with the generic config options. 
     55 1. Delete the svn_revmap db table, if it exists. 
     56 1. Enable the plugin via Trac's config file (or via trac,ini). 
     57 1. Generate a revmap ( git log --quiet --format='%H%n%s%n%b' ), but delete instances of "git-svn-id:". 
     58 1. '''Verify that an upgrade does not produce corrupt data.''' 
     59 
     60=== tooltips === 
     61 
     62''The plugin will properly display tooltips according to configuration.'' 
     63 
     64Procedure:  
     65 1. Start with the generic config options. 
     66 1. Create or view a wiki page with valid svn revisions and git ids. 
     67 1. '''Verify that the wiki syntax works and that tooltips are displayed.''' 
     68 1. Change the "long_tooltips" config option to 0 and restart Trac. 
     69 1. '''Verify that truncated tooltips are displayed.''' 
     70 
     71=== wiki syntax === 
     72 
     73''The plugin will properly detect and display svn and git links.'' 
     74 
     75Procedure:  
     76 1. Start with the generic config options. 
     77 1. Create or view a wiki page with valid and invalid svn revisions and git ids. 
     78 1. '''Verify that the valid links are displayed as links.''' 
     79 1. '''Verify that the invalid links are displayed unchanged.''' 
     80 
     81=== changeset urls === 
     82 
     83''The plugin will properly redirect changeset urls to GitHub.'' 
     84 
     85Procedure:  
     86 1. Start with the generic config options. 
     87 1. Create or view a wiki page with valid svn revisions and git ids. 
     88 1. '''Verify that the git ids redirect the appropriate commit at GitHub.''' 
     89 1. '''Verify that the svn revisions redirect the appropriate git commit at GitHub.''' (look for the git-svn-id on the GitHub page) 
     90 
    4991== TODO == 
    5092 
    5193 
    52  * import of an incorrect revmap fails gracefully 
    53  * tooltips work (shortened and unshortened) 
    54  * wiki syntax works 
    55    * svn rev (valid, invalid) 
    56    * git id (valid, invalid) 
    57  * changeset url works 
    58    * svn rev (valid, invalid) 
    59    * git id (valid, invalid) 
    6094 * browser url works 
    6195 * github hooks insert correct data into the db