Skip to content

Latest commit

 

History

History

testware

Cypher for Gremlin Testware

By default, tests are executed on an embedded TinkerGraph with Gremlin Server Cypher plugin installed see GremlinServerExternalResource using a plugin-compatible client.

To run tests with different client configurations use the translate parameter, for example:

./gradlew :testware:integration-tests:build -Dtranslate=gremlin+cfog_server_extensions

To run tests on an external Gremlin Server use the configPath parameter, for example:

./gradlew :testware:integration-tests:build -DconfigPath="config/cypher-server.yaml"

Examples

Run Integration Tests on JanusGraph

  • Setup JanusGraph and install Gremlin Server Cypher Plugin
  • Drop schema, indexes and constraints
  • Run gradle :testware:integration-test-suites:suite --tests "org.opencypher.gremlin.suites.JanusGraphSuite" -DconfigPath=/path/to/janusgraph-client.yaml

Run Integration Tests on AWS Neptune

  • Setup port forwarding or run inside VPC
  • Run gradle :testware:integration-test-suites:suite --tests "org.opencypher.gremlin.suites.NeptuneSuite" -DconfigPath=/path/to/neptune-client.yaml -Dtranslate=neptune

Run Integration Tests on CosmosDB

  • Run gradle :testware:integration-test-suites:suite --tests "org.opencypher.gremlin.suites.CosmosDBSuite" -DconfigPath=/path/to/cosmosdb-client.yaml -Dtranslate=cosmosdb

Run Integration Tests on Neo4j

  • Setup and install Gremlin Server Cypher Plugin
  • Run gradle :testware:integration-test-suites:suite --tests "org.opencypher.gremlin.suites.ExtensionsSuite" -DconfigPath=/path/to/neo4j-client.yaml