[ 
https://issues.apache.org/jira/browse/SUREFIRE-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17435561#comment-17435561
 ] 

Slawomir Jaranowski commented on SUREFIRE-1624:
-----------------------------------------------

Probably {{excludedEnvironmentVariables}} do what you need.

https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#excludedEnvironmentVariables

> Add a method to unset environment variables
> -------------------------------------------
>
>                 Key: SUREFIRE-1624
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1624
>             Project: Maven Surefire
>          Issue Type: New Feature
>          Components: Maven Surefire Plugin
>    Affects Versions: 3.0
>            Reporter: Alon Bar-Lev
>            Priority: Major
>
> Hello,
> Please consider providing a  method to unset an environment variable.
> Currently the environmentVariables enables to set a value but not to remove.
> The option of using <KEY/> was nice as removal option, however, it was 
> interprated in SUREFIRE-963 as an empty string instead of removal.
> The use case is to have a clean environment variable table to allow isolating 
> tests from the build environment.
> Thanks!
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to