Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 297070 - Eclipse-based test types do not clear workspace before executing the test.
Summary: Eclipse-based test types do not clear workspace before executing the test.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact: Kathy Chan CLA
URL:
Whiteboard: bvt
Keywords:
Depends on: 296799
Blocks: 211751
  Show dependency tree
 
Reported: 2009-12-07 10:35 EST by Paul Slauenwhite CLA
Modified: 2016-05-05 10:36 EDT (History)
2 users (show)

See Also:


Attachments
Patch (AGR) (13.11 KB, patch)
2009-12-07 10:55 EST, Paul Slauenwhite CLA
no flags Details | Diff
Patch (AGR - Version 2). (9.09 KB, patch)
2010-03-01 14:08 EST, Paul Slauenwhite CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Slauenwhite CLA 2009-12-07 10:35:16 EST
Eclipse-based test types do not clear workspace before executing the test.

The Eclipse-based test types can be executed with the necessary configuration to delete the local/remote Eclipse workspace and
configuration directories.  However, the local/remote Eclipse workspace and
configuration directories are not deleted and no error is logged.

Test types:

TPTP JUnit Plug-in
TPTP AGR

This defect requires the fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=296799 AND the attached patch.

Requires a new test case for the TPTP JUnit Plug-in test type.
Comment 1 Paul Slauenwhite CLA 2009-12-07 10:55:10 EST
Created attachment 153929 [details]
Patch (AGR)
Comment 2 Paul Slauenwhite CLA 2009-12-07 10:55:32 EST
(In reply to comment #1)
> Created an attachment (id=153929) [details]
> Patch (AGR)

Requires review and testing.
Comment 3 Paul Slauenwhite CLA 2010-03-01 07:25:11 EST
Requires confirmation now that defect https://bugs.eclipse.org/bugs/show_bug.cgi?id=296799 is fixed since defect https://bugs.eclipse.org/bugs/show_bug.cgi?id=299942 suggests the configuration/workspace directories are now deleted for TPTP JUnit Plug-in test types.
Comment 4 Paul Slauenwhite CLA 2010-03-01 12:41:49 EST
(In reply to comment #3)
> Requires confirmation now that defect
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=296799 is fixed since defect
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=299942 suggests the
> configuration/workspace directories are now deleted for TPTP JUnit Plug-in test
> types.

Confirmed.  Verified in TPTP-4.7.0-201002281900 by launching a TPTP JUnit Plug-in test with a workbench location with the clear configuration area/workspace options set.
Comment 5 Paul Slauenwhite CLA 2010-03-01 14:08:32 EST
Created attachment 160515 [details]
Patch (AGR - Version 2).
Comment 6 Paul Slauenwhite CLA 2010-03-01 14:24:56 EST
(In reply to comment #5)
> Created an attachment (id=160515) [details]
> Patch (AGR - Version 2).

Refactored the patch for a cleaner fix.

Checked in to CVS (HEAD).

Added a new test case to /org.eclipse.hyades.test.java.tests/manual/regressionTests/Test.Execution.JUnitPluginRunner.testsuite for the TPTP JUnit Plug-in test type.
Comment 7 Paul Slauenwhite CLA 2010-03-26 15:23:56 EDT
Verified in TPTP-4.7.0-201003251321.

Closing.