[modelica] Add integration smoke test

This commit is contained in:
Andreas Dangel
2019-12-17 12:23:25 +01:00
parent 7bb987fcf4
commit bc2f2d8f50
3 changed files with 37 additions and 1 deletions

View File

@ -22,7 +22,8 @@ public class AllRulesIT extends AbstractBinaryDistributionTest {
@Parameters
public static Iterable<String> languagesToTest() {
// note: scala and wsdl have no rules
return Arrays.asList("java", "apex", "javascript", "jsp", "plsql", "pom", "visualforce", "velocitytemplate", "xml", "xsl");
return Arrays.asList("java", "apex", "javascript", "jsp", "modelica",
"plsql", "pom", "visualforce", "velocitytemplate", "xml", "xsl");
}
@Test

View File

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<ruleset name="All Modelica Rules"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
<description>Every Modelica Rule in PMD</description>
<rule ref="category/modelica/bestpractices.xml" />
<!-- <rule ref="category/modelica/codestyle.xml" /> -->
<!-- <rule ref="category/modelica/design.xml" /> -->
<!-- <rule ref="category/modelica/documentation.xml" /> -->
<!-- <rule ref="category/modelica/errorprone.xml" /> -->
<!-- <rule ref="category/modelica/multithreading.xml" /> -->
<!-- <rule ref="category/modelica/performance.xml" /> -->
<!-- <rule ref="category/modelica/security.xml" /> -->
</ruleset>

View File

@ -0,0 +1,17 @@
package Test
package Inc
model X
end X;
model Y
end Y;
end Inc;
model A
model Y
end Y;
end A;
model B
extends A;
import Inc.*;
X x;
end B;
end OtherName;