Skip to content

Commit da6509a

Browse files
authored
Document how to run docker for db tests (Firebird + MySQL + PostgreSQL) (#1918)
1 parent a9ef55f commit da6509a

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

tests/Dapper.Tests/Providers/FirebirdTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
namespace Dapper.Tests.Providers
88
{
9+
/// <summary>
10+
/// If Docker Desktop is installed, run the following command to start a container suitable for the tests.
11+
/// <code>
12+
/// docker run -d -p 3050:3050 --name Dapper.Tests.Firebird -e FIREBIRD_DATABASE=database -e ISC_PASSWORD=masterkey jacobalberty/firebird
13+
/// </code>
14+
/// </summary>
915
public class FirebirdProvider : DatabaseProvider
1016
{
1117
public override DbProviderFactory Factory => FirebirdClientFactory.Instance;

tests/Dapper.Tests/Providers/MySQLTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77

88
namespace Dapper.Tests
99
{
10+
/// <summary>
11+
/// If Docker Desktop is installed, run the following command to start a container suitable for the tests.
12+
/// <code>
13+
/// docker run -d -p 3306:3306 --name Dapper.Tests.MySQL -e MYSQL_DATABASE=tests -e MYSQL_USER=test -e MYSQL_PASSWORD=pass -e MYSQL_ROOT_PASSWORD=pass mysql
14+
/// </code>
15+
/// </summary>
1016
public sealed class MySqlProvider : DatabaseProvider
1117
{
1218
public override DbProviderFactory Factory => MySqlConnector.MySqlConnectorFactory.Instance;

tests/Dapper.Tests/Providers/PostgresqlTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77

88
namespace Dapper.Tests
99
{
10+
/// <summary>
11+
/// If Docker Desktop is installed, run the following command to start a container suitable for the tests.
12+
/// <code>
13+
/// docker run -d -p 5432:5432 --name Dapper.Tests.PostgreSQL -e POSTGRES_DB=dappertest -e POSTGRES_USER=dappertest -e POSTGRES_PASSWORD=dapperpass postgres
14+
/// </code>
15+
/// </summary>
1016
public class PostgresProvider : DatabaseProvider
1117
{
1218
public override DbProviderFactory Factory => Npgsql.NpgsqlFactory.Instance;

0 commit comments

Comments
 (0)