You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Ian Maxon (JIRA)" <ji...@apache.org> on 2015/11/12 20:18:11 UTC

[jira] [Created] (ASTERIXDB-1172) Reset state of test harness between tests

Ian Maxon created ASTERIXDB-1172:
------------------------------------

             Summary: Reset state of test harness between tests
                 Key: ASTERIXDB-1172
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1172
             Project: Apache AsterixDB
          Issue Type: Improvement
            Reporter: Ian Maxon
            Assignee: Ian Maxon


[~mhubail] and I were discussing a way to solve the issue of our tests not being quite unit tests, mainly the aspect of having one test fail and clobber all of the tests after it. 

One idea for fixing this is to basically save the state of AsterixHyracksIntegrationUtil once @BeforeClass is executed, and then as a @Before , restore the state via copying the metadata folder, deleting the rest of the storage folder, and expiring all the caches and so on. It would not be perfect, but it would be at least a way of getting closer to a blank slate, without having to run @BeforeClass and @AfterClass every time, which is just too slow. 



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