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] |
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 | |
| 115 | In 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 | |
| 128 | Default username/password for these users are: |
| 129 | |
| 130 | * user/user |
| 131 | |
| 132 | * admin/admin |
| 133 | |
| 134 | Default url for local Trac test project is: |
| 135 | |
| 136 | * !http://localhost/trac/test |
| 137 | |
| 138 | |
| 139 | Those settings are actually configured on source file [source:wikieditorforeclipseplugin/trunk/source/core/pom.xml#L111]. |
| 140 | |
| 141 | Probably 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 | |
| 164 | NOTE: 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 | |
| 166 | If 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 | |
| 168 | Happy Hacking!! |