Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-3361

Modularize Maven Structure for Tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • documentation
    • None

    Description

      There's a few reasons to break tests out into their own module:
      1. Allowing maven users to easily re-consume test utilities as part of a "test" package which doesn't pollute the runtime classpath
      2. Putting integration tests (tests that create or require a cluster) in their own module allows users to easily rebuild and test the core of HBase without running long-running tests, reducing the developer iteration loop

      After some discussions with Stack on IRC, it sounds like there was some historic investigation of this which was abandoned because the module system was becoming too complex. I'd suggest that rather than trying to break out components all at once into their modules, evaluate creation of modules on a case-by-case basis and only create them when there's a significant use case justification.

      I created a sample of what I'm thinking about (based on the current trunk) and posted it on github
      git://github.com/ekohlwey/modularized-hbase.git

      Attachments

        1. HBASE-3361.patch
          1 kB
          M Linville

        Activity

          People

            Unassigned Unassigned
            ekohlwey Ed Kohlwey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: