Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Chore - Unit Tests in KotlinTest #31

Merged
merged 18 commits into from
Dec 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
665f304
Updated Kotlin and other dependencies version
hhandoko Dec 6, 2016
677ba40
Refactored Keyspace and Cluster configuration test with Spek
hhandoko Dec 8, 2016
21a6629
Refactored MigrationInfo and MigrationVersion test with Spek
hhandoko Dec 12, 2016
0baf741
Refactored CqlMigrationResolver test with Spek
hhandoko Dec 12, 2016
75fe979
Refactored JavaMigrationResolver test with Spek
hhandoko Dec 12, 2016
6a35d64
Refactored MigrationInfoHelper test with Spek
hhandoko Dec 12, 2016
8785e3a
Refactored CompositeMigrationResolver test with Spek
hhandoko Dec 12, 2016
24fc967
Refactored Keyspace and Cluster configuration test with kotlintest
hhandoko Dec 15, 2016
3a956e2
Refactored MigrationInfo and MigrationVersion test with kotlintest
hhandoko Dec 15, 2016
b990042
Refactored migration resolvers test with kotlintest
hhandoko Dec 15, 2016
3741038
Removed Spek and JUnit 5 from dependencies
hhandoko Dec 15, 2016
e0169e2
Updated ClusterConfiguration unit test to pass `127.0.0.1` value
hhandoko Dec 16, 2016
be42335
Refactored Validate command API integration test in kotlintest
hhandoko Dec 16, 2016
e818a6b
Refactored Baseline command API integration test in kotlintest
hhandoko Dec 19, 2016
da840cb
Refactored Migration invocation method integration test (WIP) in kotl…
hhandoko Dec 20, 2016
5a0300a
Refactored Command line migration integration test in kotlintest
hhandoko Dec 20, 2016
70e1e92
Refactored integration test namespace and class names
hhandoko Dec 20, 2016
6fe5695
Commented out Cassandra Migration API test to mark as pending
hhandoko Dec 20, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 60 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<kotlin.version>1.0.3</kotlin.version>
<slf4j.version>1.7.13</slf4j.version>
<kotlin.version>1.0.5</kotlin.version>
<kotlin-test.version>1.3.5</kotlin-test.version>
<slf4j.version>1.7.21</slf4j.version>
<junit-platform.version>1.0.0-M2</junit-platform.version>
<junit-vintage.version>4.12.0-M2</junit-vintage.version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
Expand Down Expand Up @@ -92,6 +95,8 @@
<artifactId>cassandra-driver-core</artifactId>
<version>3.0.0</version>
</dependency>

<!-- Test-specific dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand All @@ -104,12 +109,24 @@
<version>1.10.19</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.nhaarman</groupId>
<artifactId>mockito-kotlin</artifactId>
<version>1.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-junit</artifactId>
<version>2.0.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-rules</artifactId>
<version>1.16.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.cassandraunit</groupId>
<artifactId>cassandra-unit</artifactId>
Expand All @@ -130,10 +147,26 @@
</exclusion>
</exclusions>
</dependency>
<!-- NOTE:
Some compatibility issues with Guava v20.
TODO: Need to investigate and update.
-->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>18.0</version>
<version>19.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.kotlintest</groupId>
<artifactId>kotlintest</artifactId>
<version>${kotlin-test.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-junit</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -158,13 +191,17 @@
<execution>
<id>compile</id>
<phase>process-sources</phase>
<goals> <goal>compile</goal> </goals>
<goals>
<goal>compile</goal>
</goals>
</execution>

<execution>
<id>test-compile</id>
<phase>process-test-sources</phase>
<goals> <goal>test-compile</goal> </goals>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
Expand Down Expand Up @@ -194,7 +231,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.19.1</version>
<!-- NOTE: Configuration as per http://stackoverflow.com/a/33757854 -->
<!-- NOTE:
Configuration as per http://stackoverflow.com/a/33757854
-->
<configuration>
<forkCount>1</forkCount>
<reuseForks>true</reuseForks>
Expand All @@ -209,6 +248,21 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19</version>
<!-- NOTE:
Use `Spec` to differentiate between kotlintest and JUnit tests.
However, it means that Spec files need to be explicitly included,
otherwise it will be ignored.
-->
<configuration>
<includes>
<include>**/*Spec.*</include>
<include>**/*Test.*</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
Expand Down

This file was deleted.

Loading