[
https://issues.apache.org/jira/browse/YARN-9631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16866054#comment-16866054
]
Eric Yang commented on YARN-9631:
---------------------------------
[~jojochuang], test property flag is honored by Maven Surefire plugin.
Hadoop-yarn-application-catalog does respect mvn test parameter for Java based
test cases according to my local testing. However, there is test cases written
in another language (i.e. javascript), which does not know about Surefire
plugin test property flag concept. This is the reason some test cases get
triggered. Hadoop C++ code can also trigger non-related test cases to run with
test flag is given.
Maven encourages to trigger as many test to run as possible for new developer
that start with mvn clean package command to ensure that we have wide coverage
of tests by default. If this gets in the way of your development efficiency,
then I would recommend to make builds from hadoop-hdfs-project to prevent
non-related test case from trigger. This may save huge amount of time for
working on smaller set instead of always having to build from global.
Alternatively, I can also propose a new flag to skip javascript related test,
such as:
{code:java}
mvn clean test -DskipJsTests -Dtest=TestMaintenanceState{code}
If this is what you prefer.
> hadoop-yarn-applications-catalog-webapp doesn't respect mvn test -D parameter
> -----------------------------------------------------------------------------
>
> Key: YARN-9631
> URL: https://issues.apache.org/jira/browse/YARN-9631
> Project: Hadoop YARN
> Issue Type: Improvement
> Affects Versions: 3.3.0
> Environment: When I run a HDFS test {{mvn test
> -Dtest=TestMaintenanceState}} from the Hadoop source code root,
> hadoop-yarn-applications-catalog-webapp doesn't respect the test filter and
> always runs its tests.
> Reporter: Wei-Chiu Chuang
> Priority: Major
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]