|
222 | 222 |
|
223 | 223 | <target name="common.run-tests"
|
224 | 224 | description="Run NUnit tests">
|
| 225 | + <exec program="${root.dir}/Tools/nunit/nunit-console-x86.exe"> |
| 226 | + <arg line="${bin.dir}/${project::get-name()}.dll /xml=${bin.dir}/${project::get-name()}.dll.result.xml" /> |
| 227 | + </exec> |
225 | 228 |
|
226 |
| - <nunit2> |
| 229 | + <!--<nunit2> |
227 | 230 | <formatter
|
228 | 231 | type="Xml"
|
229 | 232 | usefile="true"
|
|
233 | 236 | <test
|
234 | 237 | assemblyname="${bin.dir}/${project::get-name()}.dll"
|
235 | 238 | appconfig="${bin.dir}/${project::get-name()}.dll.config" />
|
236 |
| - </nunit2> |
| 239 | + </nunit2>--> |
237 | 240 |
|
238 | 241 | </target>
|
239 | 242 |
|
|
250 | 253 | <!--
|
251 | 254 | Tell nhibernate how to connect to the test database.
|
252 | 255 | -->
|
253 |
| - <xmlpoke |
254 |
| - file="${app.config}" |
255 |
| - xpath="/configuration/nhibernate/add[@key='hibernate.dialect']/@value" |
256 |
| - value="${nhibernate.dialect}" |
257 |
| - /> |
258 |
| - <xmlpoke |
259 |
| - file="${app.config}" |
260 |
| - xpath="/configuration/nhibernate/add[@key='hibernate.connection.driver_class']/@value" |
261 |
| - value="${nhibernate.connection.driver_class}" |
262 |
| - /> |
263 |
| - <xmlpoke |
264 |
| - file="${app.config}" |
265 |
| - xpath="/configuration/nhibernate/add[@key='hibernate.connection.connection_string']/@value" |
266 |
| - value="${nhibernate.connection.connection_string}" |
267 |
| - /> |
| 256 | + <xmlpoke file="${app.config}" |
| 257 | + xpath="//*/hbm:property[@name='dialect']" |
| 258 | + value="${nhibernate.dialect}"> |
| 259 | + <namespaces> |
| 260 | + <namespace prefix="hbm" uri="urn:nhibernate-configuration-2.2" /> |
| 261 | + </namespaces> |
| 262 | + </xmlpoke> |
| 263 | + |
| 264 | + <xmlpoke file="${app.config}" |
| 265 | + xpath="//*/hbm:property[@name='connection.driver_class']" |
| 266 | + value="${nhibernate.connection.driver_class}"> |
| 267 | + <namespaces> |
| 268 | + <namespace prefix="hbm" uri="urn:nhibernate-configuration-2.2" /> |
| 269 | + </namespaces> |
| 270 | + </xmlpoke> |
| 271 | + <xmlpoke file="${app.config}" |
| 272 | + xpath="//*/hbm:property[@name='connection.connection_string']" |
| 273 | + value="${nhibernate.connection.connection_string}"> |
| 274 | + <namespaces> |
| 275 | + <namespace prefix="hbm" uri="urn:nhibernate-configuration-2.2" /> |
| 276 | + </namespaces> |
| 277 | + </xmlpoke> |
268 | 278 | </target>
|
269 | 279 |
|
270 | 280 | <target name="common.remove-connection-settings-from-app-config">
|
|
0 commit comments