This directory builds a Docker image for Druid, then uses that image, along with test configuration to run tests. This version greatly evolves the integration tests from the earlier form. See the History section for details.
List of the most common commands once you're familiar with the framework. If you are new to the framework, see Quickstart for an explanation.
To make the text a bit simpler, define a variable for the standard settings:
export MAVEN_IGNORE=-P skip-static-checks,skip-tests -Dmaven.javadoc.skip=true ```bash mvn clean package -P dist $MAVEN_IGNORE -T1.0C
cd $DRUID_DEV/integration-tests-ex/image mvn install -P test-image $MAVEN_IGNORE
mvn verify -P IT-<category> -pl :druid-it-cases $MAVEN_IGNORE
Where <category>
is one of the test categories.
Or
cd $DRUID_DEV/integration-tests-ex/cases mvn verify -P skip-static-checks,docker-tests,IT-<category> \ -Dmaven.javadoc.skip=true -DskipUTs=true \ -pl :druid-it-cases
Start the cluster:
cd $DRUID_DEV/integration-tests-ex/cases ./cluster.sh up <category>
Where <category>
is one of the test categories. Then launch the test as a JUnit test.
Background information
The goal of the present version is to simplify development.
distribution
so we know what is tested.By meeting these goals, you can quickly:
The result is that the fastest path to develop a Druid patch or feature is: