Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-847

Test Framework harmonization across all languages

    XMLWordPrintableJSON

Details

    Description

      Today each Language supported by Thrift, have its own unit test, all are using the same Thrift IDL's located at the test directory. But the behavior of these tests seems to be different from language to language... this makes it difficult to do tests and bug fixing across different Languages. e.g.

      • C++ Test and JavaScript Test Server written in Java have different responses for the same services
      • C# and Java Test Server have different responses for testException as C++

      I propose the following steps:

      • identify the language with the reference implementation (well defined return values for all test cases)
      • update the ThriftTest.thrift with details about the required return values that have to be implemented
      • update test implementations and move language tests into their appropriate library directory (THRIFT-35)
      • a public test server that supports multiple protocols and transports could be another enhancement for testing purposes

      I'm ready to help preparing patches, just tell me what you need!

      Attachments

        1. 0001-THRIFT-847-Test-Framework-harmonization-across-all-l.patch
          8 kB
          Roger Meier
        2. 0001-THRIFT-847-Test-Framework-harmonization-across-all-l.patch
          27 kB
          Chamila Dilshan Wijayarathna
        3. 0001-THRIFT-847-Test-Framework-harmonization-across-all-l.patch
          15 kB
          Chamila Dilshan Wijayarathna
        4. 0001-THRIFT-847-Test-Framework-harmonization-across-all-l.patch
          8 kB
          Chamila Dilshan Wijayarathna
        5. 0001-THRIFT-847-Test-Framework-harmonization-across-all-l.patch
          3 kB
          Chamila Dilshan Wijayarathna
        6. 0001-THRIFT-847-Test-Framework-harmonization-across-all-l.patch
          2 kB
          Chamila Dilshan Wijayarathna
        7. THRIFT-847_add__make_cross__build_target.patch
          0.2 kB
          Roger Meier
        8. test.sh
          4 kB
          Roger Meier
        9. build.xml
          3 kB
          Roger Meier
        10. v1-WORK_IN_PROGRESS-unified_tests.tar.gz
          6 kB
          Christian Lavoie

        Issue Links

          Activity

            People

              roger Roger Meier
              roger Roger Meier
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: