File tree Expand file tree Collapse file tree 9 files changed +39
-10
lines changed
src/test/java/org/utplsql/api Expand file tree Collapse file tree 9 files changed +39
-10
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ before_script:
44
44
- cp .travis/settings.xml $MAVEN_CFG/settings.xml
45
45
46
46
script :
47
- - mvn test -B
47
+ - mvn verify -B
48
48
49
49
before_deploy :
50
50
- if [ ! -z "$TRAVIS_TAG" ]; then VERSION=$(tr -d "/v/" <<<$TRAVIS_TAG); mvn org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=${VERSION}; fi
Original file line number Diff line number Diff line change 66
66
<version >0.0.6</version >
67
67
</extension >
68
68
</extensions >
69
+ <plugins >
70
+ <plugin >
71
+ <groupId >org.apache.maven.plugins</groupId >
72
+ <artifactId >maven-surefire-plugin</artifactId >
73
+ <version >2.19.1</version >
74
+ <configuration >
75
+ <excludes >
76
+ <exclude >**/*IT.java</exclude >
77
+ </excludes >
78
+ </configuration >
79
+ </plugin >
80
+ <plugin >
81
+ <groupId >org.apache.maven.plugins</groupId >
82
+ <artifactId >maven-failsafe-plugin</artifactId >
83
+ <version >2.19.1</version >
84
+ <executions >
85
+ <execution >
86
+ <goals >
87
+ <goal >integration-test</goal >
88
+ <goal >verify</goal >
89
+ </goals >
90
+ </execution >
91
+ </executions >
92
+ </plugin >
93
+ </plugins >
69
94
</build >
70
95
71
96
<distributionManagement >
Original file line number Diff line number Diff line change 1
1
package org .utplsql .api ;
2
2
3
3
import org .junit .Assert ;
4
+ import org .junit .Before ;
4
5
import org .junit .Rule ;
5
6
import org .junit .Test ;
6
7
import org .utplsql .api .compatibility .CompatibilityProxy ;
9
10
import java .sql .Connection ;
10
11
import java .sql .SQLException ;
11
12
12
- public class CompatibilityTest {
13
+ public class CompatibilityIT {
13
14
14
15
@ Rule
15
16
public final DatabaseRule db = new DatabaseRule ();
Original file line number Diff line number Diff line change 7
7
8
8
import java .sql .SQLException ;
9
9
10
- public class DBHelperTest {
10
+ public class DBHelperIT {
11
11
12
12
@ Rule
13
13
public final DatabaseRule db = new DatabaseRule ();
Original file line number Diff line number Diff line change 9
9
import java .util .ArrayList ;
10
10
import java .util .List ;
11
11
12
- public class FileMapperTest {
12
+ public class FileMapperIT {
13
13
14
14
@ Rule
15
15
public final DatabaseRule db = new DatabaseRule ();
Original file line number Diff line number Diff line change 19
19
/**
20
20
* Created by Vinicius on 13/04/2017.
21
21
*/
22
- public class OutputBufferTest {
22
+ public class OutputBufferIT {
23
23
24
24
@ Rule
25
25
public final DatabaseRule db = new DatabaseRule ();
Original file line number Diff line number Diff line change 14
14
/**
15
15
* Created by Vinicius on 13/04/2017.
16
16
*/
17
- public class TestRunnerTest {
17
+ public class TestRunnerIT {
18
18
19
19
@ Rule
20
20
public final DatabaseRule db = new DatabaseRule ();
Original file line number Diff line number Diff line change 1
1
package org .utplsql .api .rules ;
2
2
3
3
import org .junit .rules .ExternalResource ;
4
+ import org .utplsql .api .EnvironmentVariableUtil ;
4
5
5
6
import java .sql .Connection ;
6
7
import java .sql .DriverManager ;
@@ -18,11 +19,13 @@ public class DatabaseRule extends ExternalResource {
18
19
private static String sPass ;
19
20
20
21
static {
21
- sUrl = System . getenv ("DB_URL" ) != null ? System . getenv ( "DB_URL" ) : " 192.168.99.100:1521:XE" ;
22
- sUser = System . getenv ("DB_USER" ) != null ? System . getenv ( "DB_USER" ) : " app" ;
23
- sPass = System . getenv ("DB_PASS" ) != null ? System . getenv ( "DB_PASS" ) : " app" ;
22
+ sUrl = EnvironmentVariableUtil . getEnvValue ("DB_URL" , " 192.168.99.100:1521:XE") ;
23
+ sUser = EnvironmentVariableUtil . getEnvValue ("DB_USER" , " app") ;
24
+ sPass = EnvironmentVariableUtil . getEnvValue ("DB_PASS" , " app") ;
24
25
}
25
26
27
+
28
+
26
29
private List <Connection > connectionList ;
27
30
28
31
public DatabaseRule () {
Original file line number Diff line number Diff line change 9
9
10
10
import java .sql .SQLException ;
11
11
12
- public class TestRunnerStatementProviderTest {
12
+ public class TestRunnerStatementProviderIT {
13
13
14
14
@ Rule
15
15
public final DatabaseRule db = new DatabaseRule ();
You can’t perform that action at this time.
0 commit comments