Skip to content

Running the integration tests

Nicholas Sizer edited this page Jan 10, 2018 · 5 revisions

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 DatabaseLoginDetails.json (.gitignore already has an entry) file to the root of the AdoNetCore.AseClient.Tests project directory.

The file should be of the form:

{
  "Server": "a",
  "Port": "b",
  "Database": "c",
  "User": "d",
  "Pass": "e"
}

You will need to define the Server, Port, Database, User and Pass parts to connect to your own ASE server.

When the tests are run, they will generate appropriate connection strings using the details provided.

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.

Clone this wiki locally