Name Last Update
..
README Loading commit data...
authentication.cs Loading commit data...
document_add.cs Loading commit data...
document_checkout.cs Loading commit data...
document_contents.cs Loading commit data...
document_copy.cs Loading commit data...
document_detail.cs Loading commit data...
document_download.cs Loading commit data...
document_history.cs Loading commit data...
document_links.cs Loading commit data...
document_metadata.cs Loading commit data...
document_owner.cs Loading commit data...
document_rename.cs Loading commit data...
document_system_metadata.cs Loading commit data...
document_type.cs Loading commit data...
document_workflow.cs Loading commit data...
folder.cs Loading commit data...
helper.cs Loading commit data...
inventory.txt Loading commit data...
makefile Loading commit data...
query.cs Loading commit data...

README

GENERAL
-------

This folder includes the Nunit unit tests to unit test web services.

REQUIREMENTS
------------

The unit tests were written for NUnit. NUnit 2.2.0 was used during development.

This framework was developed in Linux using Mono.

DATABASE
--------

Review helper.cs to see the configuration settings. UnixODBC is used. Sample config files:

# odbc.ini

[ktdms]
Driver = myodbcdriver
Description = MySQL ODBC 2.50 Driver DSN
SERVER = localhost
PORT =
Socket = /tmp/mysql.sock
USER = root
Password =
Database = ktdms
OPTION = 3

# odbcinst.ini
[myodbcdriver]
Description = MySQL ODBC 2.50 Driver DSN
Driver = /usr/lib64/unixODBC/libmyodbc3.so

The document type 'NewType' must be added to the database for the document_type.cs unit test to run.

RUNNING THE TESTS
-----------------

Edit the makefile to ensure that the WSDL_URL is directed to the correct location.

A makefile is provided which can be used as follows:

- make // will build and run the tests

- make clean // will remove all temporary and binary files

STATE
-----

The states of the tests is very alpha. Some of the tests are quite complicated, so we can probably split them.

REFERENCES
----------

For more information:

http://nunit.org/
http://www.mono-project.com/
http://www.unixodbc.org