Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-1899

Pig needs a tool for doing end to end testing efficiently

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • tools
    • None

    Description

      Pig currently uses junit for all testing. junit is good for unit tests, but limited for end to end and integration testing.

      Building an end to end test in junit is cumbersome (a lot of setup and such to do using MiniCluster). Given that expected results must be known beforehand and hand crafted they must be kept very small, usually ten or less rows. This does not lead to realistic testing scenarios.

      A test tool is needed that allows the test developer to write a Pig Latin script and specify a source of truth against which to test the results of running this Pig Latin script. A database or a previous version of Pig can then be used as that source of truth. This will allow developers to quickly add new tests that return more than trivial results.

      Attachments

        1. PIG-1899-3.patch
          832 kB
          Alan Gates
        2. PIG-1899.patch
          629 kB
          Alan Gates
        3. PIG-1899.patch
          496 kB
          Alan Gates
        4. e2e.patch
          490 kB
          Alan Gates

        Activity

          People

            gates Alan Gates
            gates Alan Gates
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: