This is an automated email from the ASF dual-hosted git repository. smakov pushed a commit to branch NLPCRAFT-174 in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit ec6e67914ffd825ba843a1b61b065363b3525a7d Author: smakov <[email protected]> AuthorDate: Sat Nov 28 16:10:08 2020 +0300 NLPCRAFT-174: Add 'extended-tests' maven profile to run extended tests. --- nlpcraft/pom.xml | 49 ++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 44 insertions(+), 5 deletions(-) diff --git a/nlpcraft/pom.xml b/nlpcraft/pom.xml index 6be99be..451abdf 100644 --- a/nlpcraft/pom.xml +++ b/nlpcraft/pom.xml @@ -357,8 +357,8 @@ </systemProperties> </configuration> <executions> - <!-- All tests are defined as integration. --> <execution> + <!-- All tests are defined as integration. --> <id>integration-tests</id> <phase>integration-test</phase> <goals> @@ -370,11 +370,8 @@ <includes> <include>**/*.*</include> </includes> + <!-- Exclude extended tests (they can be run via 'extended-tests' Maven profile) --> <excludes> - <!-- - Some tests skipped on maven `verify` phase. - =========================================== - --> <!-- Reason: output is to big. --> <exclude>**/NCDateGeneratorSpec.*</exclude> <!-- Reason: 'contextWordServer' should be started. --> @@ -541,4 +538,46 @@ </plugin> </plugins> </build> + + <profiles> + <profile> + <id>extended-tests</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>${maven.surefire.plugin.ver}</version> + <configuration> + <systemProperties> + <property> + <name>NLPCRAFT_TEST_MAVEN_ENV</name> + <value>true</value> + </property> + </systemProperties> + </configuration> + <executions> + <execution> + <id>extended-integration-tests</id> + <phase>integration-test</phase> + <goals> + <goal>test</goal> + </goals> + <configuration> + <skip>false</skip> + <includes> + <include>**/NCDateGeneratorSpec.*</include> + <include>**/NCRestModelSpec.*</include> + </includes> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>
