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:
4444 - cp .travis/settings.xml $MAVEN_CFG/settings.xml
4545
4646script :
47- - mvn test -B
47+ - mvn verify -B
4848
4949before_deploy :
5050 - 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 6666 <version >0.0.6</version >
6767 </extension >
6868 </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 >
6994 </build >
7095
7196 <distributionManagement >
Original file line number Diff line number Diff line change 11package org .utplsql .api ;
22
33import org .junit .Assert ;
4+ import org .junit .Before ;
45import org .junit .Rule ;
56import org .junit .Test ;
67import org .utplsql .api .compatibility .CompatibilityProxy ;
910import java .sql .Connection ;
1011import java .sql .SQLException ;
1112
12- public class CompatibilityTest {
13+ public class CompatibilityIT {
1314
1415 @ Rule
1516 public final DatabaseRule db = new DatabaseRule ();
Original file line number Diff line number Diff line change 77
88import java .sql .SQLException ;
99
10- public class DBHelperTest {
10+ public class DBHelperIT {
1111
1212 @ Rule
1313 public final DatabaseRule db = new DatabaseRule ();
Original file line number Diff line number Diff line change 99import java .util .ArrayList ;
1010import java .util .List ;
1111
12- public class FileMapperTest {
12+ public class FileMapperIT {
1313
1414 @ Rule
1515 public final DatabaseRule db = new DatabaseRule ();
Original file line number Diff line number Diff line change 1919/**
2020 * Created by Vinicius on 13/04/2017.
2121 */
22- public class OutputBufferTest {
22+ public class OutputBufferIT {
2323
2424 @ Rule
2525 public final DatabaseRule db = new DatabaseRule ();
Original file line number Diff line number Diff line change 1414/**
1515 * Created by Vinicius on 13/04/2017.
1616 */
17- public class TestRunnerTest {
17+ public class TestRunnerIT {
1818
1919 @ Rule
2020 public final DatabaseRule db = new DatabaseRule ();
Original file line number Diff line number Diff line change 11package org .utplsql .api .rules ;
22
33import org .junit .rules .ExternalResource ;
4+ import org .utplsql .api .EnvironmentVariableUtil ;
45
56import java .sql .Connection ;
67import java .sql .DriverManager ;
@@ -18,11 +19,13 @@ public class DatabaseRule extends ExternalResource {
1819 private static String sPass ;
1920
2021 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") ;
2425 }
2526
27+
28+
2629 private List <Connection > connectionList ;
2730
2831 public DatabaseRule () {
Original file line number Diff line number Diff line change 99
1010import java .sql .SQLException ;
1111
12- public class TestRunnerStatementProviderTest {
12+ public class TestRunnerStatementProviderIT {
1313
1414 @ Rule
1515 public final DatabaseRule db = new DatabaseRule ();
You can’t perform that action at this time.
0 commit comments