1. 13 Sep, 2013 2 commits
  2. 12 Sep, 2013 28 commits
  3. 11 Sep, 2013 3 commits
  4. 10 Sep, 2013 7 commits
    • Arnaud Fontaine's avatar
      Selection: Do not set Selections if the new and store name differs instead of... · 8d331c55
      Arnaud Fontaine authored
      Selection: Do not set Selections if the new and store name differs instead of raising AssertionError.
      8d331c55
    • Arnaud Fontaine's avatar
      ZODB Components: Migrate test to Live Test. · 205ccd98
      Arnaud Fontaine authored
      In Live Test, setUpOnce() is not called, instead afterSetUp() should be
      used. Also, remove update of Local Roles as this is already done automatically
      upon bt5 installation since a481170a.
      205ccd98
    • Arnaud Fontaine's avatar
      ZODB Components: When executing code, module globals disappeared after a reset... · 3a92d8b6
      Arnaud Fontaine authored
      ZODB Components: When executing code, module globals disappeared after a reset performed in another thread.
      
      This fixes failures in erp5_configurator* tests where BTs installed during the
      tests trigger a reset and globals (such as DateTime global import) were reset to
      None.
      3a92d8b6
    • Arnaud Fontaine's avatar
      runUnitTest: Test the full ports range as some tests require Zope to listen on... · 19b3a67d
      Arnaud Fontaine authored
      runUnitTest: Test the full ports range as some tests require Zope to listen on a port (testShaDir...).
      
      With erp5testnode, many tests are running concurrently on the same machine and
      only 3 ports were randomly tested before continuing and thus not listening to
      any port. Moreover, checking the full range (500 ports) takes less than 1ms...
      19b3a67d
    • Arnaud Fontaine's avatar
      ZODB Components: Test bootstrap is already done before even running the test. · fd9219af
      Arnaud Fontaine authored
      Therefore, all Test Components are now ERP5TypeLiveTestCase. For backward
      compatibility sake, just modify Test Component class bases to
      ERP5TypeLiveTestCase, likewise runLiveTest.
      
      This means that tests ran through runUnitTest and from Live Tests ERP5 UI would
      behave exactly the same, contrary to the implementation before Test Components.
      
      Also, move a method called in one of ERP5TypeTypeMixin method from
      ERP5TypeTestCaseCommandLine.
      fd9219af
    • Arnaud Fontaine's avatar
      ZODB Components: Revert 'Allow to execute runUnitTest for bt5 Test Components'... · c35d24e8
      Arnaud Fontaine authored
      ZODB Components: Revert 'Allow to execute runUnitTest for bt5 Test Components' (a771dca4) to fix tests bootstrap.
      
      The new syntax to load ZODB Tests Components is:
      runUnitTest BT_TITLE:TEST_NAME
      
      That commit was too adhoc as it was relying upon filesystem to load Tests
      Components and was not behaving like any other Components (versions was not
      available and other Components were not importable).
      
      At the end, it would have meant that a Test Component ran through runUnitTest
      and Live Tests (in ERP5 itself) would have behaved differently, thus instead:
      
      1/ Install BT_TITLE dependencies and its test dependencies (new bt property to
         specify bt to be installed only for tests on a fresh instance).
      2/ The site is loaded.
      3/ Load the test by importing it like any other Components.
      c35d24e8
    • Arnaud Fontaine's avatar
      ZODB Components: Workflow History must always be kept. · 8ee4b16a
      Arnaud Fontaine authored
      Avoid an extra step for developers by keeping the last Workflow History for
      Components by default.
      8ee4b16a