[forge-issues] [JBoss JIRA] (FORGE-1729) Test harness should set the Configuration directory to use the test temp dir by default

George Gastaldi (JIRA) issues at jboss.org
Tue Jun 3 12:03:22 EDT 2014


    [ https://issues.jboss.org/browse/FORGE-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972935#comment-12972935 ] 

George Gastaldi commented on FORGE-1729:
----------------------------------------

Is there any system property we might check if it is being running from a unit test? 




> Test harness should set the Configuration directory to use the test temp dir by default
> ---------------------------------------------------------------------------------------
>
>                 Key: FORGE-1729
>                 URL: https://issues.jboss.org/browse/FORGE-1729
>             Project: Forge
>          Issue Type: Enhancement
>          Components: Configuration
>    Affects Versions: 2.3.0.Final
>            Reporter: Lincoln Baxter III
>            Assignee: Lincoln Baxter III
>             Fix For: 2.5.0.Final
>
>
> Currently the UserConfiguration references the current users home directory while running tests - it should use the available system property while running tests in order to direct the config dir to a temp location for that test execution:
> {code}
>    static final String USER_CONFIG_PATH = "org.jboss.forge.addon.configuration.USER_CONFIG_PATH";
>          String property = System.getProperty(USER_CONFIG_PATH);{code}



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the forge-issues mailing list