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

Add failsafe integration test runner, rename integration tests #540

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

TSavo
Copy link
Contributor

@TSavo TSavo commented Mar 4, 2020

There are a number of integration tests which are presently ignored by the maven build. Rather than ignore them, this PR renames them to *IT.java, and adds the failsafe maven plugin, configuring it to not fail the build on a failed integration tests.

This paves the way for more integration tests without fear of failing the build if the exchange is down. The integration tests have been added to the following goals:

verify
integration-test

To run the tests, simply run mvn verify. To run only the integration tests, run mvn integration-test.

Copy link
Collaborator

@badgerwithagun badgerwithagun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - just a couple of things I reckon could be even better.

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to skip running these entirely on the Travis build - they take a lot of wasted time. Could you add an argument to do that and set the travis build to use it?

@@ -4,7 +4,7 @@

import info.bitrich.xchangestream.core.StreamingExchange;
import java.math.BigDecimal;
import org.junit.Ignore;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance of changing all those ...Example classes which use main methods to use this pattern too? (Feel free to say "some other time" - it would just be nice to do it all at once).

@badgerwithagun badgerwithagun added the awaiting_fixes PR is awaiting submitter to respond to a review label Mar 14, 2020
@badgerwithagun
Copy link
Collaborator

This project is in the process of being merged into the XChange project and no further PRs will be merged here. Once the projects have been merged, there may be a short stabilization period where there will be large-scale renaming of classes and packages, which may cause conflicts. You are advised to wait at least a week from now and then resubmit your PR on the XChange project. Thank you for your support!

@badgerwithagun
Copy link
Collaborator

badgerwithagun commented May 8, 2020

@TSavo, I'm keen to get this done since it is an obvious difference between all the streaming modules and polling modules on XChange. Are you in a position to resubmit this PR on the XChange project?

@TSavo
Copy link
Contributor Author

TSavo commented May 10, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
awaiting_fixes PR is awaiting submitter to respond to a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants