forked from phoedos/pmd
[javascript] Consolidate test packages
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.ant;
|
||||
package net.sourceforge.pmd.lang.ecmascript;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@ -11,6 +11,7 @@ import net.sourceforge.pmd.test.AbstractAntTestHelper;
|
||||
class PMDTaskTest extends AbstractAntTestHelper {
|
||||
|
||||
PMDTaskTest() {
|
||||
super.pathToTestScript = "target/test-classes/net/sourceforge/pmd/lang/ecmascript/ant/xml";
|
||||
super.antTestScriptFilename = "pmdtasktest.xml";
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd;
|
||||
package net.sourceforge.pmd.lang.ecmascript;
|
||||
|
||||
import static net.sourceforge.pmd.lang.test.ast.TestUtilsKt.assertSize;
|
||||
import static net.sourceforge.pmd.lang.test.ast.TestUtilsKt.assertSuppressed;
|
@ -1,4 +0,0 @@
|
||||
/**
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
// just some js file for net.sourceforge.pmd.cli.CLITest
|
@ -6,7 +6,7 @@
|
||||
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" />
|
||||
|
||||
<target name="testEcmascript">
|
||||
<pmd rulesetfiles="${pmd.home}/src/test/resources/net/sourceforge/pmd/ant/xml/ruleset.xml">
|
||||
<pmd rulesetfiles="${pmd.home}/src/test/resources/net/sourceforge/pmd/lang/ecmascript/ant/xml/ruleset.xml">
|
||||
<formatter type="text" toConsole="true" />
|
||||
<fileset dir="${pmd.home}/src/test/resources/ant/ecmascript/">
|
||||
<include name="*.js" />
|
Reference in New Issue
Block a user