PMD exit with status 4 if violations have been found.

This commit is contained in:
Andreas Dangel
2015-03-21 19:03:03 +01:00
parent 741a9470bd
commit 0c69ed6f8b
9 changed files with 80 additions and 16 deletions

View File

@ -21,7 +21,7 @@ public class CLITest extends BaseCLITest {
String[] args = { "-d", SOURCE_FOLDER, "-f", "xml", "-R", "ecmascript-basic", "-version", "3", "-l",
"ecmascript", "-debug" };
String resultFilename = runTest(args, "useEcmaScript");
assertTrue("Invalid Java version",
assertTrue("Invalid JavaScript version",
FileUtil.findPatternInFile(new File(resultFilename), "Using Ecmascript version: Ecmascript 3"));
}
}

View File

@ -0,0 +1,4 @@
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
// just some js file for net.sourceforge.pmd.cli.CLITest