Harmony
  1. Harmony
  2. HARMONY-6420

[test] Increase the method coverage rate for unit test

    Details

    • Type: Test Test
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 5.0M12
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      I recently generated a coverage report for Harmony trunk and would like to contribute more test cases to increase the method coverage rate for it. Currently, these patches are made for the main modules as below. After applying these patches, the average method coverage rate for these modules can reach 90% above. I also attached the reports of the baseline and the result with patches.
      java.io
      java.lang
      java.lang.instrument
      java.lang.reflect
      javax.print.*
      java.net
      java.util
      javax.sql.*
      javax.acessibility

      1. Result-report.zip
        2.84 MB
        Jim Yu
      2. baseline-report.zip
        2.85 MB
        Jim Yu

        Activity

        Jim Yu created issue -
        Jim Yu made changes -
        Field Original Value New Value
        Attachment baseline-report.zip [ 12430354 ]
        Attachment Result-report.zip [ 12430355 ]
        Hide
        Nathan Beyer added a comment -

        I'm curious about how you gathered the coverage data? That would a valuable contribution on it's own.

        Show
        Nathan Beyer added a comment - I'm curious about how you gathered the coverage data? That would a valuable contribution on it's own.
        Hide
        Jim Yu added a comment -

        Hi Nathan,
        These data are generated on my local machine. Seems Sean had done some integration work of EMMA into BTI system. But as I know, that can't work properly.

        Show
        Jim Yu added a comment - Hi Nathan, These data are generated on my local machine. Seems Sean had done some integration work of EMMA into BTI system. But as I know, that can't work properly.
        Hide
        Mark Hindess added a comment -

        Removing the "fix for" version since this is not a regression but an ongoing task that isn't required for a given release.

        Show
        Mark Hindess added a comment - Removing the "fix for" version since this is not a regression but an ongoing task that isn't required for a given release.
        Mark Hindess made changes -
        Fix Version/s 5.0M13 [ 12314443 ]
        Hide
        Tim Ellison added a comment -

        Jim, there are still subtasks for this issue that have outstanding questions.
        Any comments? It would be a shame to miss out on these enhancements.

        Show
        Tim Ellison added a comment - Jim, there are still subtasks for this issue that have outstanding questions. Any comments? It would be a shame to miss out on these enhancements.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jim Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development