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

ASF GitHub Bot commented on TINKERPOP-954:
------------------------------------------

GitHub user spmallette opened a pull request:

    https://github.com/apache/incubator-tinkerpop/pull/178

    TINKERPOP-954 Consistent test directory usage

    https://issues.apache.org/jira/browse/TINKERPOP-954
    
    Got all hard-coded directories in tests using refined methods in 
`TestHelper`.  That basically gets everything behind the 
`/target/test-case-data` directory in a consistent fashion.  I also went a step 
further and used the class name passed to `TestHelper` (formerly just used to 
orient the `/target` directory) to include a subdirectory structure which then 
yields `/target/test-case-data/ClassName` so that it's easy to find the test 
data output in case it needs to be reviewed.
    
    Ran the full test suite with integration tests and all passed.
    
    VOTE +1

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/incubator-tinkerpop TINKERPOP-954

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-tinkerpop/pull/178.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 #178
    
----
commit da2eb7e427b556cfa7926e53eee55cf591876ad2
Author: Stephen Mallette <[email protected]>
Date:   2015-12-10T18:43:49Z

    Consolidated all test data directories in a consistent fashion.
    
    Removed references to /tmp and hardcoded references to /target.  I think I 
have them all, but hard to say for sure.  Extended TestHelper a little bit with 
a few more methods and made it easier to find data generated for a specific 
test.

commit 740ed131e735cdb3ca2561bb52c5b4fa9e9e5541
Author: Stephen Mallette <[email protected]>
Date:   2015-12-11T10:14:24Z

    Fixed up some problems in the Hadoop plugin tests around hdfs testing.

commit cfdad57c8b6d006e6f011d9341ea585494fa2a17
Author: Stephen Mallette <[email protected]>
Date:   2015-12-11T10:17:04Z

    Add a bit more javadoc to the getWorkingDirectory method promoted to 
GraphProvider.

commit 89f027d5797cea499a4ba6030f12d600b6d65c16
Author: Stephen Mallette <[email protected]>
Date:   2015-12-11T10:18:24Z

    Updated changelog.

commit ad9facbaf49d6df2e1f40fa38f648b5d82821f66
Author: Stephen Mallette <[email protected]>
Date:   2015-12-11T11:16:50Z

    Add some notes about unit testing to dev docs

----


> Consistent test directory usage
> -------------------------------
>
>                 Key: TINKERPOP-954
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-954
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: test-suite
>    Affects Versions: 3.0.2-incubating
>            Reporter: stephen mallette
>            Assignee: stephen mallette
>            Priority: Minor
>             Fix For: 3.1.1-incubating
>
>
> There are a number of tests that need to use the file system to read/write 
> input/output.  Determining that directory to read/write from/to is currently 
> done in a number of ways in different contexts in the test suite.
> The appropriate method is to use {{TestHelper}} to construct that path as it 
> accounts for a number of environmental situations.  {{TestHelper}} could use 
> some additional work to improve it's usage - maybe it needs its own unit 
> tests as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to