YARN-9631. Added ability to select JavaScript test or skip JavaScript tests for YARN application catalog.

Contributed by Eric Yang

(cherry picked from commit 6002b0c5c6994965d3f7231330248c093869dba2)
This commit is contained in:
Eric Yang 2019-06-19 18:45:23 -04:00
parent 71ecd2e411
commit 5bfdf62614
1 changed files with 14 additions and 1 deletions

View File

@ -36,6 +36,7 @@
<vendor.loc>target/generated-sources/vendor</vendor.loc>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<dependency.locations.enabled>false</dependency.locations.enabled>
<javascript.test>*Spec</javascript.test>
</properties>
<dependencies>
@ -365,6 +366,7 @@
</execution>
</executions>
<configuration>
<skipJasmineTests>${skipTests}</skipJasmineTests>
<webDriverClassName>org.openqa.selenium.phantomjs.PhantomJSDriver</webDriverClassName>
<webDriverCapabilities>
<capability>
@ -381,7 +383,7 @@
<jsSrcDir>src/main/javascript</jsSrcDir>
<jsTestSrcDir>src/test/javascript</jsTestSrcDir>
<specIncludes>
<include>*Spec.js</include>
<include>${javascript.test}.js</include>
</specIncludes>
</configuration>
</plugin>
@ -458,6 +460,17 @@
</plugins>
</build>
</profile>
<profile>
<id>test-selector</id>
<activation>
<property>
<name>test</name>
</property>
</activation>
<properties>
<javascript.test>${test}</javascript.test>
</properties>
</profile>
<profile>
<id>rest-docs</id>
<build>