You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#109 better separation between unit tests and integration tests (#111)
* #109 stop running IT in unittest
* #109 update ddbctest to test all supported databases against containers
* install msodbcsql18 for integration tests
* use env for db ports
* add CONTRIBUTING.md file
* remove Visual Studio project files and update gitignore
DDBC aims to support a range of compiler versions across from dmd 2.097 and above across a range of databases; SQLite, MySQL/MariaDB, Postgres, SQL Server, and Oracle.
2
+
3
+
## Tests
4
+
5
+
To help with testing there is a *docker-compose.yml* file in the root of the project so that multiple databases can be run locally for testing.
6
+
7
+
When making changes to DDBC please ensure that unit tests (test not requiring a working database) remain in the project source and any integration tests (those running against a local database) are placed the test project (under `./test/ddbctest/`).
8
+
9
+
unit tests can br run in the usual way with `dub test` and integration tests are run with `dub run --config=test`.
10
+
11
+
## Requirements for developing
12
+
13
+
Apart from a D compiler such as dmd or ldc and the dub package manager, you'll need to have docker and docker-compose installed. If you want to test against an Oracle container you'll also need to have a login for [container-registry.oracle.com](https://container-registry.oracle.com) and have accepted their terms & conditions. There's also some libraries you'll need to have installed.
On Linux you can potentially use [FreeTDS](https://www.freetds.org/) as the ODBC driver when connecting to SQL Server. However, Microsoft do provide their own odbc driver and that is what's used for testing against SQL Server during CI.
24
+
25
+
On Fedora Linux you can find packages under [packages.microsoft.com/config/rhel/](https://packages.microsoft.com/config/rhel/). See the documentation [here](https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver16#redhat18) for more details.The basic steps are:
0 commit comments