forked from phoedos/pmd
@ -1,31 +0,0 @@
|
||||
/**
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.cli;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import net.sourceforge.pmd.PMD.StatusCode;
|
||||
|
||||
/**
|
||||
* @author Romain Pelisse <belaran@gmail.com>
|
||||
*
|
||||
*/
|
||||
public class CLITest extends BaseCLITest {
|
||||
@Test
|
||||
public void useEcmaScript() {
|
||||
String log = runTest(StatusCode.VIOLATIONS_FOUND,
|
||||
"-d",
|
||||
SOURCE_FOLDER,
|
||||
"-f",
|
||||
"xml",
|
||||
"-R",
|
||||
"rulesets/testing/js-rset1.xml",
|
||||
"--no-progress",
|
||||
"--debug");
|
||||
assertThat(log, containsPattern("Adding file .*\\.js \\(lang: ecmascript ES6\\)"));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user