db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3905) Failed tests should save the database off to the fail directory
Date Fri, 10 Oct 2008 17:01:44 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638588#action_12638588
] 

Kathey Marsden commented on DERBY-3905:
---------------------------------------

I implemented this by using File.rename() to move the database directory to the failure directory
on failure which seems to work fine except for in the case where we have a CleanDatabaseTestSetup./decoratesql,
where we lose the initial setup so subsequent tests may fail because the table setup isn't
there.  Perhaps a recursive copy would be better, but  slower.    I'll try to write a method
to do the recursive copy because I don't see anything readily available in Java and see how
that goes.

> Failed tests should save the database off to the fail directory
> ---------------------------------------------------------------
>
>                 Key: DERBY-3905
>                 URL: https://issues.apache.org/jira/browse/DERBY-3905
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.5.0.0
>            Reporter: Kathey Marsden
>            Priority: Minor
>
> Currently failed tests save the derby.log to the fail directory for that test.  It would
be useful to save the database as well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message