Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-764

Refactor the tests suite to speed up execution

    XMLWordPrintable

    Details

    • Type: Epic
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.227
    • Fix Version/s: 4.1.0
    • Component/s: Tests
    • Tags:
    • Backlog priority:
      800
    • Sprint:
      nxMS 9.1.3
    • Story Points:
      8
    • Completion Level (0 to 5):
      5

      Description

      We have to refactor tests to take way less time to complete.
      Currently:

      • GNU/Linux: 1h30
      • Windows: 1h42
      • macOS: 1h55

      For every little change, we have to wait at least 2h, so a refactoring can only be helpful.

      Ideas:

      • rework setUp and setUpServer
      • parallelize tests (each test file will work into its own Nuxeo workspace using the class name as directory name per example)

      Steps:
      1. use only one base class
      2. use addCleanup for all kind of cleanup (should fix NXDRIVE-317)
      3. fix bad logging use introduced with NXDRIVE-335
      4. permit several Drive instances
      5. try xdist plugin to parallelize all tests
      6. eventually rethink wait_async

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mschoentgen Mickaël Schoentgen
                Reporter:
                mschoentgen Mickaël Schoentgen
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Time Spent - 5 hours, 10 minutes Remaining Estimate - 2 days, 1 hour, 50 minutes
                  2d 1h 50m
                  Logged:
                  Time Spent - 5 hours, 10 minutes Remaining Estimate - 2 days, 1 hour, 50 minutes
                  5h 10m