-
Notifications
You must be signed in to change notification settings - Fork 47
Running the integration tests
The unit tests should run without any work as they are isolated from an ASE Server dependency. However the integration tests need an ASE Server to work. Once you have one of those (version 15+), you'll need to add a ConnectionStrings.json file to the root of the AdoNetCore.AseClient.Tests
project directory.
The file should be of the form:
{
"default": "Data Source=[server-name]; Port=[port]; Database=[database]; Uid=[user-id]; Pwd=[password];",
"pooled": "Data Source=[server-name]; Port=[port]; Database=[database]; Uid=[user-id]; Pwd=[password]; Pooling=true",
"big-packetsize": "Data Source=[server-name]; Port=[port]; Database=[database]; Uid=[user-id]; Pwd=[password]; PacketSize=1024",
"badpass": "Data Source=[server-name]; Port=[port]; Database=[database]; Uid=[user-id]; Pwd=a-bad-password"
}
You will need to define the server-name
, port
, database
, user-id
and password
parts to connect to your own ASE server.
The specified user will need sufficient permissions to drop and create database objects as well as perform SELECT, INSERT, UPDATE, and DELETE operations on those objects, and to EXEC stored procedures.
The objects themselves and any test data are created by the tests when they execute.
Be sure to add ConnectionStrings.json to your .gitignore file to prevent it from being checked-in.
- Using the driver
- Developing the driver