Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4417

The tests/ directory should contain only tests. Common and utility code should go into a testlib/ directory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Product Backlog
    • None
    • Infrastructure

    Description

      py.test (as does any test framework) contains some way of auto-discovering test functions/classes/etc to run. However, there are many things in the tests/ directory that break py.test's auto-discovery (by falsely appearing to be tests), This necessitates the addition of a white list in tests/run_tests.py as a hack around the breakage.

       # We whitelist valid test directories. If a new test directory is added, update this.
       29 VALID_TEST_DIRS = ['failure', 'query_test', 'stress', 'unittests', 'aux_query_tests',
       30     ┆   ┆   ┆   ┆  'shell', 'hs2', 'catalog_service', 'metadata', 'data_errors',
       31     ┆   ┆   ┆   ┆  'statestore']
      

      We should consider moving anything that is not in this list into a dedicated impala_testlib/ directory. Some of the more obvious candidates include:

      tests/common
      tests/util
      tests/comparison
      tests/beeswax
      tests/performance

      Attachments

        Issue Links

          Activity

            People

              dknupp David Knupp
              dknupp David Knupp
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: