You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/31 21:05:04 UTC
[jira] [Commented] (SUREFIRE-1378) Nice to have
systemPropertiesFile configurable by user property
[ https://issues.apache.org/jira/browse/SUREFIRE-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16031965#comment-16031965 ]
ASF GitHub Bot commented on SUREFIRE-1378:
------------------------------------------
GitHub user michaldo opened a pull request:
https://github.com/apache/maven-surefire/pull/152
[SUREFIRE-1378] Nice to have systemPropertiesFile configurable by user property
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/michaldo/maven-surefire master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven-surefire/pull/152.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #152
----
commit 228baaa876c7ade557224b9f57f265649798cac7
Author: michal <mi...@michal-desktop>
Date: 2017-05-31T19:52:50Z
[SUREFIRE-1378] Nice to have systemPropertiesFile configurable by user
property
----
> Nice to have systemPropertiesFile configurable by user property
> ---------------------------------------------------------------
>
> Key: SUREFIRE-1378
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1378
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin, Maven Surefire Plugin
> Reporter: Michal Domagala
> Priority: Minor
>
> I would like to have option to configure my tests with property files. But property file is not required, because in 95% my tests work fine with default configuration.
> I used the following workaround: I configured failsafe plugin in the following way
> {code:xml}
> <properties>
> <my.test.props.file></my.test.props.file>
> </properties>
> (...)
> <artifact>maven-failsafe-plugin</artifact>
> (...)
> <systemPropertiesFile>${my.test.props.file}</systemPropertiesFile>
> {code}
> In 95% I call *mvn verify*, systemPropertiesFile is not found and ignored -all pass
> In 5% I call *mvn verify -Dmy.test.props.file=x.props*
> The problem is in 95% I get warning about missing files. Also configuration is unnecessary complicated
> I would like drop whole connfiguration from pom.xml and use:
> In 95% *mvn verify*
> In 5% *mvn verify -Dfailsafe.systemPropertiesFile=x.props*
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)