Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dapper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
Dapper
Commits
f0273d64
Commit
f0273d64
authored
Feb 11, 2016
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Standardize on test db for appveyor
parent
4d7a0139
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
TestSuite.cs
Dapper.Tests.Contrib/TestSuite.cs
+2
-0
TestSuites.cs
Dapper.Tests.Contrib/TestSuites.cs
+2
-2
Tests.cs
Dapper.Tests/Tests.cs
+4
-4
No files found.
Dapper.Tests.Contrib/TestSuite.cs
View file @
f0273d64
...
...
@@ -93,6 +93,8 @@ public class Result
public
abstract
partial
class
TestSuite
{
protected
static
readonly
bool
IsAppVeyor
=
Environment
.
GetEnvironmentVariable
(
"Appveyor"
)?.
ToUpperInvariant
()
==
"TRUE"
;
public
abstract
IDbConnection
GetConnection
();
private
IDbConnection
GetOpenConnection
()
...
...
Dapper.Tests.Contrib/TestSuites.cs
View file @
f0273d64
...
...
@@ -29,7 +29,7 @@ public class SqlServerTestSuite : TestSuite
{
const
string
DbName
=
"tempdb"
;
public
static
string
ConnectionString
=>
!
string
.
IsNullOrEmpty
(
Environment
.
GetEnvironmentVariable
(
"APPVEYOR"
))
IsAppVeyor
?
@"Server=(local)\SQL2014;Database=tempdb;User ID=sa;Password=Password12!"
:
$"Data Source=.;Initial Catalog=
{
DbName
}
;Integrated Security=True"
;
public
override
IDbConnection
GetConnection
()
=>
new
SqlConnection
(
ConnectionString
);
...
...
@@ -67,7 +67,7 @@ public class MySqlServerTestSuite : TestSuite
const
string
DbName
=
"DapperContribTests"
;
public
static
string
ConnectionString
=>
!
string
.
IsNullOrEmpty
(
Environment
.
GetEnvironmentVariable
(
"APPVEYOR"
))
IsAppVeyor
?
@"Server=localhost;Uid=root;Pwd=Password12!;"
:
$"Server=localhost;Uid=root;Pwd=Password12!;"
;
...
...
Dapper.Tests/Tests.cs
View file @
f0273d64
...
...
@@ -74,12 +74,12 @@ namespace Dapper.Tests
public
partial
class
TestSuite
:
IDisposable
{
public
static
string
ConnectionString
=>
!
string
.
IsNullOrEmpty
(
Environment
.
GetEnvironmentVariable
(
"APPVEYOR"
))
IsAppVeyor
?
@"Server=(local)\SQL2014;Database=tempdb;User ID=sa;Password=Password12!"
:
"Data Source=.;Initial Catalog=tempdb;Integrated Security=True"
;
public
static
string
OleDbConnectionString
=>
!
string
.
IsNullOrEmpty
(
Environment
.
GetEnvironmentVariable
(
"APPVEYOR"
))
IsAppVeyor
?
@"Provider=SQLOLEDB;Data Source=(local)\SQL2014;Initial Catalog=tempdb;User Id=sa;Password=Password12!"
:
"Provider=SQLOLEDB;Data Source=.;Initial Catalog=tempdb;Integrated Security=SSPI"
;
...
...
@@ -2931,7 +2931,7 @@ public void Issue295_NullableDateTime_SqlServer()
bool
convertZeroDatetime
=
false
,
bool
allowZeroDatetime
=
false
)
{
string
cs
=
IsAppVeyor
?
"Server=localhost;Database=test
s
;Uid=root;Pwd=Password12!;"
?
"Server=localhost;Database=test;Uid=root;Pwd=Password12!;"
:
"Server=localhost;Database=tests;Uid=test;Pwd=pass;"
;
var
csb
=
new
MySql
.
Data
.
MySqlClient
.
MySqlConnectionStringBuilder
(
cs
);
csb
.
AllowZeroDateTime
=
allowZeroDatetime
;
...
...
@@ -3360,7 +3360,7 @@ public void TestPostgresqlArrayParameters()
static
NpgsqlConnection
OpenPostgresqlConnection
()
{
string
cs
=
IsAppVeyor
?
"Server=localhost;Port=5432;User Id=postgres;Password=Password12!;Database=
dapper
test"
?
"Server=localhost;Port=5432;User Id=postgres;Password=Password12!;Database=test"
:
"Server=localhost;Port=5432;User Id=dappertest;Password=dapperpass;Database=dappertest"
;
// ;Encoding = UNICODE
var
conn
=
new
NpgsqlConnection
(
cs
);
conn
.
Open
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment