Changes between Version 15 and Version 16 of WikiEditorForEclipsePlugin


Ignore:
Timestamp:
May 22, 2009, 6:39:06 PM (15 years ago)
Author:
Ivan
Comment:

Running tests section

Legend:

Unmodified
Added
Removed
Modified
  • WikiEditorForEclipsePlugin

    v15 v16  
    5959This plugin is composed by:
    6060
    61         * Java Wiki RPC Client Library: this library features a !WikiClient high level API to access
     61        * Java !WikiRPC client library: including a high level API to access the [http://www.jspwiki.org/wiki/WikiRPCInterface WikiRPCInterface] and a batch of automated tests to test default implementation against a Trac server (see [#RunningTests Running Tests] below).
    6262
    6363        * Set of Eclipse plugins: Eclipse wiki source editor and management capabilities.
     
    9292[INFO] Reactor Summary:
    9393[INFO] ------------------------------------------------------------------------
    94 [INFO] Trac WikiEditor 4 Eclipse ............................. SUCCESS [26.222s]
    95 [INFO] Trac WikiEditor 4 Eclipse ~ Core ...................... SUCCESS [23.628s]
    96 [INFO] Trac WikiEditor 4 Eclipse ~ Eclipse Modules ........... SUCCESS [1.014s]
    97 [INFO] Trac WikiEditor 4 Eclipse ~ org.trachacks.wikieditor.eclipse.core  SUCCESS [51.335s]
    98 [INFO] Trac WikiEditor 4 Eclipse ~ org.trachacks.wikieditor.eclipse.plugin  SUCCESS [12.982s]
    99 [INFO] Trac WikiEditor 4 Eclipse ~ org.trachacks.wikieditor.eclipse.feature  SUCCESS [3.986s]
    100 [INFO] Trac WikiEditor 4 Eclipse ~ org.trachacks.wikieditor.eclipse.site  SUCCESS [9.239s]
     94[INFO] Trac WikiEditor 4 Eclipse ............................. SUCCESS [26.864s]
     95[INFO] Trac WikiEditor 4 Eclipse ~ Core ...................... SUCCESS [1:05.127s]
     96[INFO] Trac WikiEditor 4 Eclipse ~ Eclipse Modules ........... SUCCESS [1.083s]
     97[INFO] Trac WikiEditor 4 Eclipse ~ org.trachacks.wikieditor.eclipse.core  SUCCESS [47.909s]
     98[INFO] Trac WikiEditor 4 Eclipse ~ org.trachacks.wikieditor.eclipse.plugin  SUCCESS [13.284s]
     99[INFO] Trac WikiEditor 4 Eclipse ~ org.trachacks.wikieditor.eclipse.feature  SUCCESS [2.595s]
     100[INFO] Trac WikiEditor 4 Eclipse ~ org.trachacks.wikieditor.eclipse.site  SUCCESS [8.048s]
    101101[INFO] ------------------------------------------------------------------------
    102102[INFO] ------------------------------------------------------------------------
    103103[INFO] BUILD SUCCESSFUL
    104104[INFO] ------------------------------------------------------------------------
    105 [INFO] Total time: 2 minutes 25 seconds
    106 [INFO] Finished at: Sun May 17 20:11:30 CEST 2009
    107 [INFO] Final Memory: 27M/50M
     105[INFO] Total time: 2 minutes 57 seconds
     106[INFO] Finished at: Thu May 21 22:14:13 CEST 2009
     107[INFO] Final Memory: 29M/52M
    108108[INFO] ------------------------------------------------------------------------
    109109}}}
     
    111111This will create a local eclipse update site at ''!WikiEditor4Eclipse/source/eclipse/org.trachacks.wikieditor.eclipse.site/target/site'' you can point Eclipse Update Manager to.
    112112
    113 == Runing Tests ==
    114 
    115 In order to run automated tests against a Trac server you will need to setup a local server
    116 
    117 TODO: how to set up tests prerequisites
    118 
     113== Running Tests ==
     114
     115In order to run automated tests against a Trac server you will need to setup a local server. These are the prerequisites in order to run the test suit included in the ''core'' library:
     116
     117        * Set up a test project on a local Trac server of hand. This Trac server must support BASIC authentication on the standard Trac url location.
     118       
     119        * Set up an user for that project with (at least) the following permissions:
     120                        - WIKI_VIEW
     121                        - WIKI_CREATE
     122                        - WIKI_MODIFY
     123                        - XML_RPC
     124               
     125        * Set up another user with also the following permission:
     126                        - WIKI_DELETE
     127
     128Default username/password for these users are:
     129
     130        * user/user
     131       
     132        * admin/admin
     133       
     134Default url for local Trac test project is:
     135
     136        *  !http://localhost/trac/test
     137
     138
     139Those settings are actually configured on source file [source:wikieditorforeclipseplugin/trunk/source/core/pom.xml#L111].
     140
     141Probably the best way to override these setting values is using the standard maven $HOME/.m2/settings.xml file. You can use the following snipet as base:
     142
     143{{{
     144#!text/xml
     145<settings>
     146        <profiles>
     147                <profile>
     148                        <id>test-properties</id>
     149                        <activation>
     150                                <property><name>!maven.test.skip</name></property>
     151                        </activation>
     152                        <properties>
     153                                <server.url>http://localhost/trac/test</server.url>
     154                                <credentials.admin.username>admin</credentials.admin.username>
     155                                <credentials.admin.password>admin</credentials.admin.password>
     156                                <credentials.user.username>user</credentials.user.username>
     157                                <credentials.user.password>user</credentials.user.password>                     
     158                        </properties>
     159                </profile>     
     160        </profiles>     
     161</settings>
     162}}}
     163
     164NOTE: some TestSuites need to be run in particular order but this is not guaranteed by unit testing technology used. This is something I would like to address at some point, as it is a potential test failure cause in some particular environments.
     165
     166If after setting up testing prerequisites as mentioned in this guide, automated tests still fail to run in your particular environment you can open a [http://trac-hacks.org/newticket?component=WikiEditorForEclipsePlugin&owner=ivangsa ticket] for support.
     167
     168Happy Hacking!!
    119169
    120170== Recent Changes ==
     
    139189{{{
    140190#!html
     191<!-- scripts seems to be stripped -->
    141192<script type="text/javascript">
    142193var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");