Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To build Flink without executing the tests you can call:

mvn -DskipTests clean package

Run a single/set of tests with maven

If you want to run a single/set of tests you can do this via maven:

mvn verify -DskipTests clean package-Dtest=TestToRun

If you build multiple modules as part of the test run you might want to add -DfailIfNoTests=false:

mvn verify -Dtest=TestToRun -pl flink-runtime -am -DfailIfNoTests=false

Note that Flink uses the surefire plugin to run unit and integration tests. That is why you can also specify integration tests via -Dtest=SomeITCase.

Run Python Test

After building the Flink source code, you can run Python test in the flink-python module:

...