0 Replies Latest reply on Jul 15, 2008 5:43 AM by porcherg

    Test suite and ConfigurationHelper

    porcherg

      With maven migration, many tests are not working correctly.

      Some of these tests were using a TestSetup, which was opening and closing an EnvironmentFactory for the test suite. With maven migration, each test is run separately, and environment factories are never closed. As a result, tests that are using a different db schema are failing.
      I modified EnvironmentFactoryTestCase to fix that. Now the EnvironmentFactory is closed when the next test is not in the same package as the previous one.

      The EnvironmentFactoryTestCase and ConfigurationHelper are used for performance (the db is not generated for each test), but this can be a problem because it can break the isolation between each unit test. Do you think we need to keep the ConfigurationHelper ?

      regards,
      Guillaume