Search code examples
junitmaven-2automated-testspdfboxregression-testing

optimisation of time test on Maven by testing only modified files?


I'm working on pdfBox project, and I try to test different version (revision) of the project and I would like to reduce testing time by running only test that include modified files ? Is there any solution ? (I just started working with Maven)


Solution

  • This is not a good idea. A change in one file may have an effect on other (unchanged) files.

    If your wish is to save time, then do this instead: run maven with -DskipTests and it will not run the tests.

    Besides, even if tests fail, the PDFBox devs will already know it, because a test failure on the build server triggers a mail on the developers mailing list.