Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-847 Test Framework harmonization across all languages
  3. THRIFT-2668

TestSuite: detailed result on passed tests by feature

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • Test Suite
    • None

    Description

      return code shall be 0 on success or an integer in the range 1 - 255 on error
      as mentioned http://thrift.apache.org/test

      We can define bit fields for the byte we pass as return code:

      #define TEST_BASETYPES     1  // 0000 0001
      #define TEST_STRUCTS       2  // 0000 0010
      #define TEST_CONTAINERS    4  // 0000 0100
      #define TEST_EXCEPTIONS    8  // 0000 1000
      #define TEST_NOTUSED     240  // 1111 0000 
      

      this will help us to see which tests passed

      a TestClient will do this:

      ret = 255 - TEST_NOTUSED
      
      if testBaseTypes == passed
        ret = ret - TEST_BASETYPES
      if testStructs == passed
        ret = ret - TEST_STRUCTS
      if testContainers == passed
        ret = ret - TEST_CONTAINERS
      if testExceptions == passed
        ret = ret - TEST_EXCEPTIONS
      
      return ret
      

      test suite reporting can take care on the individual test status

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            roger Roger Meier
            roger Roger Meier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment