Running tests in Gremlin Test Module

37 views
Skip to first unread message

NQuinn

unread,
Jun 21, 2017, 6:34:08 PM6/21/17
to Gremlin-users
I am trying to debug what I think is an issue, but I am unable to run the test classes located in src/main/java in the gremlin-test module in Tinkerpop 3.3.0-SNAPSHOT.  Can someone give me some direction? It is always running the "ExceptionCoverageTest", but even when I set the test sources directory to src/main/java, it flips out because it cannot initialize any of the tests. I think I am lacking some understanding about how the test framework is structured. Any advice would help!
Thanks!
Nick

Stephen Mallette

unread,
Jun 21, 2017, 6:41:51 PM6/21/17
to Gremlin-users
You don't run those tests directly. You run your implementation of those tests. For example, when I want to run the test suite for TinkerGraph I run:


which executes the entire test suite. If i want to have some control over which test I run I add the GREMLIN_TESTS environment variable and specify the full package/classname of the test. You can read more about test suite information in the provider docs:


--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/f21fbd15-d3e4-49ba-ae04-dd2f601454d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

NQuinn

unread,
Jun 21, 2017, 6:49:09 PM6/21/17
to Gremlin-users
Stephen--

Got it! Thanks for your help. 
Best,
Nick


On Wednesday, June 21, 2017 at 3:41:51 PM UTC-7, Stephen Mallette wrote:
You don't run those tests directly. You run your implementation of those tests. For example, when I want to run the test suite for TinkerGraph I run:


which executes the entire test suite. If i want to have some control over which test I run I add the GREMLIN_TESTS environment variable and specify the full package/classname of the test. You can read more about test suite information in the provider docs:

On Wed, Jun 21, 2017 at 6:34 PM, NQuinn <nickqu...@gmail.com> wrote:
I am trying to debug what I think is an issue, but I am unable to run the test classes located in src/main/java in the gremlin-test module in Tinkerpop 3.3.0-SNAPSHOT.  Can someone give me some direction? It is always running the "ExceptionCoverageTest", but even when I set the test sources directory to src/main/java, it flips out because it cannot initialize any of the tests. I think I am lacking some understanding about how the test framework is structured. Any advice would help!
Thanks!
Nick

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.

NQuinn

unread,
Jun 21, 2017, 7:36:25 PM6/21/17
to Gremlin-users
I keep trying to run the following: 

@RunWith(ProcessComputerSuite.class)
@GraphProviderClass(provider = SparkHadoopGraphProvider.class, graph = HadoopGraph.class)
public class IssuesTest {
} 

but I am unable because I get the following exception. Any idea what I am neglecting to do?

java.lang.RuntimeException: Unable to computePath for class org.apache.tinkerpop.gremlin.spark.process.computer.SparkHadoopGraphProvider

Thanks!
Nick

Stephen Mallette

unread,
Jun 22, 2017, 6:08:05 AM6/22/17
to Gremlin-users
I'm not sure I recognize the error, but I'm also not sure what you're trying to do. What you have there basically says that you want to run the ProcessComputerSuite using HadoopGraph and the SparkGraphComputer. That configuration is analogous to the SparkGraphComputerProcessIntegrateTest in TinkerPop (which should run just fine in the TinkerPop code base). Is that what you want to do? 


Thanks!
Nick

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.

NQuinn

unread,
Jun 22, 2017, 12:34:16 PM6/22/17
to Gremlin-users
Stephen--

Great! Yeah, I found the SparkGraphComputerProcessIntegrateTest yesterday while looking at examples in the codebase for how to run the tests, but when I launch the spark-gremlin tests, it doesn't actually execute the SparkGraphComputerProcessIntegrateTest. It seems to only run a small subset of the tests in that module.  Can you explain?
Thanks!
Nick

Stephen Mallette

unread,
Jun 22, 2017, 12:36:50 PM6/22/17
to Gremlin-users
I'm guess it has to do with "integration" tests vs "unit" tests. SparkGraphComputerProcessIntegrateTest has the suffix "IntegrateTest" which will only execute if you enable those tests. You can enable them during a build with -DskipIntegrationTests=false

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.

NQuinn

unread,
Jun 22, 2017, 5:43:46 PM6/22/17
to Gremlin-users
That was it. Thanks Stephen!
Reply all
Reply to author
Forward
0 new messages