Thrift
  1. Thrift
  2. THRIFT-847

Test Framework harmonization across all languages

    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!

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

        Issue Links

        There are no Sub-Tasks for this issue.

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Roger Meier
              Reporter:
              Roger Meier
            • Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development