• Banyak alasan untuk percaya masa depan akan lebih baik. Fight!

    Code Coverage pada Java

    Code Coverage berkaitan dengan istilah tentang pengukuran dan terutama digunkan berkaitan dengan software testing. Code coverage menunjukkan seberapa lengkap suatu source code telah dicakup dengan test. Code coverage merupakan bagian dari White Box testing. White Box testing merupakan testing yang dilakukan terhadap kondisi internal dari software dan berkaitan dengan cara kerja atau source code dari software tersebut secara langsung. Code coverage merupakan jenis dari White Box testing karena testing tidak dilakukan terhadap interface atau contract dari sistem. Code coverage ini pertama kali dipublikasikan oleh Miller dan Malonev (1963).

    Jenis Jenis Code Coverage

    Code Coverage mempunyai beberapa kriteria berikut ini :

    - Function coverage, apakah setiap function dalam source code telah dipanggil?
    - Statement / Line Coverage, apakah setiap abris dari source code talah dieksekusi?
    - Decision / Branch coverage, apakah setiap struktur kendali (if ... elseif ... else ...) telah dievaluasi ke TRUE atau FALSE?
    - Condition / Predicate coverage, apakah setiap sub ekspresi boolean dievaluasi ke TRUE atau FALSE?

    - MOdified Condition / Decision coverage, apakah untuk suatu decision, setidaknya dipenuhi salah satu kemungkinan?
    - Path coverage, apakah setiap lajur yang mungkin telah dieksekusi?
    - Entry / exit coverage, apakah setiap kemungkina dari pemanggilan dan nilai kembalian dari function telah dieksekusi?
    - RElational operator coverage, memeriksa apakah ekspresi dengan operator relasional (<, <=, >, >=) diperiksa dengan nilai seperti batas yang telah ditetapkan.


    Pada dasarnya, sode coverage dilaksanakan dengan menggunakan instrumentation. Instrumentation adalah istilah yang digunakan untuk menunjukkan aplikasi dengan cara melakukan injeksi kode-kode untuk reporting ke dalam posisi-posisi tertentu yang bisa menunjukkan bagian yang telah dicakup oleh test atau belum. Instrumentasi dilakukan pada level dource code atau level compiled. Pada level source code, tool yang digunakan akan menginjeksi kode instrumentasi ke source code (mengubah source code) baru kemudian di kompilasi. Pada level compiled, code instrumentasi dinjeksikan setelah dikompilasi.

    Code Coverage Tools Java yang open Source

    - Cobertura
    - CodeCover
    - Quilt
    - Jester
    - GroboCodeCoverage
    - jcoverage/gpl
    - Hansel
    - NoUnit
    - InsECT
    - JVMDI Code Coverage Analyzer
    - JBlanket
    - Coverlipse


    1. The future of software testing is on positive note. It offers huge career prospects for talented professionals to be skilled software testers. Software testing training|Software training|Software testing training in chennai

    2. Thanks for sharing this informative content that guided me to know the details about the training offered in different technology.
      Selenium Training in Chennai | Selenium Testing Training in Chennai

    3. Awesome blog with informative content. Kindly keep update such a nice blog. Software Testing Training in Chennai | Selenium Training in Chennai

    4. he article you have shared here is very awesome. I really like and appreciate your work..IEEE Project Center in Chennai | IEEE Project Center in Velachery

    5. This comment has been removed by the author.

    6. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
      No.1 IOS Training Institute in Chennai | Best Android Training Institute in Chennai | Java Training Institute in Chennai

    7. Nice and good article.. it is very useful for me to learn and understand easily.. thanks for sharing your valuable information and time.. please keep updating.

      Android Training Institute in Chennai | IOS Training in Chennai | Online Android Training in Velachery

    8. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
      Java Training Institute in Chennai | DotNet Training Institute in Chennai | Web Designing Training Institute in Chennai

    9. I and my friends were going through the nice, helpful tips from the
      blog then the sudden came up with an awful suspicion I never
      expressed respect to the website owner for those secrets.

      Selenium Training in Chennai

    10. I enjoy what you guys are usually up too. This sort of clever work and coverage! Keep up the wonderful works guys I’ve added you guys to my blog roll.
      Besant technologies Marathahalli

    11. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
      MultiMedia Training Institute in Chennai | MultiMedia Training Center in Velachery | Graphic Designing Course in Chennai

    12. Thanks a lot very much for the high your blog post quality and results-oriented help. I won’t think twice to endorse to anybody who wants and needs support about this area.
      rprogramming training in bangalore

    13. Dear, I like all your post. Everything looks so sweet, I admire this kind of life and the best wishes for you. Hope that we can communicate with each other. By the way, anybody want to boost app ranking ? This one is useful.

    14. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training in India . Nowadays Java has tons of job opportunities on various vertical industry.

    15. I like the post format as you create user engagement in the complete article. It seems round up of all published posts. Thanks for gauging the informative posts.
      cara menggugurkan hamil

    16. This post is just what I consider a well thought out posting. Straightforward as well as the point. I'll definately keep a look out for more posts like this.
      dewa poker

    17. interesting articles and this is my first first reading a very interesting article thanks for this article that fits with the theme news.
      raja poker

    18. Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.

      java training in bangalore

    19. Informative blog and it was up to the point describing the information very effectively. Thanks to blog author for wonderful and informative post.
      Mobile application developers in Chennai | Android application developers in Chennai | Android app developers Chennai | PHP developers chennai

    20. I ‘d mention that most of us visitors are endowed to exist in a fabulous place with very many wonderful individuals with very helpful things.
      big data training in bangalore

    21. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
      dotnet training in chennai


    Salam blogger...


    Blog Status

    Free Hit Counter
    HTML Counter
    free counters