• 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.

    Instrumentasi

    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


    36 comments:

    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

      ReplyDelete
    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

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

      ReplyDelete
    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

      ReplyDelete
    5. This comment has been removed by the author.

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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.

      ReplyDelete
    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.

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    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

      ReplyDelete
    22. Thanks for sharing such wonder full and informative article.
      NO.1 Cloud Solution services | Austere Technologies. Please visit for more information www.austeretech.com

      ReplyDelete
    23. Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles.

      NO.1 APP DEVELOPMENT SERVICES | MASSIL TECHNOLOGIES

      ReplyDelete
    24. Good article and its useful information and intersting article and we also providing best serivce read for more Mobile application development Services

      ReplyDelete
    25. 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.

      white label website builder

      mobile website builder

      ReplyDelete
    26. Very good informative article. Thanks for sharing such nice article.

      Best IT Security Services | Austere Technologies

      ReplyDelete

    Salam blogger...

     

    Blog Status

    Free Hit Counter
    HTML Counter
    free counters

    Followers