Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

elide-integration-tests

This package contains integration tests for Elide, and is executed as part of the maven verify lifecycle.

Executing in IntelliJ

Database

The integration tests require a local mysql instance running with a database called root. It should be accessible by user root with password root. The maven verify lifecycle uses the jcabi-mysql-maven-plugin to bring up a mysql server with these settings. In order to run integration tests in IntelliJ, you will need to bring up your own mysql instance with the same configuration.

DataStoreSupplier

The integration tests must be executed against a concrete data store implementation. The maven lifecycles automatically manage this for inmemory and jpa. If you want to run integration tests in IntelliJ against another store than the inmemory store, there are two simple steps to follow.

  1. Create a new JUnit run configuration that targets the integration test you want to run (e.g. FilterIT)
  2. Change "Use classpath of module" to the data store you want to run the integration test against (e.g. elide-datastore-jpa)
  3. Set the dataStoreHarness property in VM options (e.g. -DdataStoreHarness=com.yahoo.elide.datastores.jpa.JpaDataStoreHarness)