Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6420

[test] Increase the method coverage rate for unit test

    Details

    • Type: Test
    • Status: Open
    • Priority: 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

        Hide
        tellison 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
        tellison 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.
        Hide
        hindessm 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
        hindessm 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.
        Hide
        junjie0122 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
        junjie0122 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
        nbeyer 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
        nbeyer Nathan Beyer added a comment - I'm curious about how you gathered the coverage data? That would a valuable contribution on it's own.

          People

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

            Dates

            • Created:
              Updated:

              Development