• 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


    78 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
    27. 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.

      Big Data Training in Bangalore

      ReplyDelete
    28. Excellent Sharing. You have done a great job. I gathered lots of new information... Java Training in Chennai

      ReplyDelete
    29. Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep updating your blog... Java Training in Chennai

      ReplyDelete
    30. I really love the theme/design of your website. Do you ever run into any browser compatibility problems? A small number of my blog audience have complained about my site not working correctly in Explorer but looks great in Safari. Do you have any ideas to help fix this problem?

      DevOps Training in Chennai

      ReplyDelete
    31. Great article, really very helpful content you made. Thank you, keep sharing.

      Software Testing | Austere Technology

      ReplyDelete
    32. Excellent information you made in this blog, very helpful information. Thanks for sharing.

      chartered accountant | Avinash college of commerce

      ReplyDelete
    33. Great article, really very helpful content you made. Thank you, keep sharing.

      Best Degree Colleges Hyderabad | Avinash College of Commerce

      ReplyDelete
    34. Hi Thanks for the nice information its very useful to read your blog. We provide best Block Chain Services

      ReplyDelete
    35. Thank you for sharing this valuable information. But get out of this busy life and find some peace with a beautiful trip book best Andaman honeymoon packages

      ReplyDelete
    36. Hi Thanks for the nice information its very useful to read your blog. We provide best Finance Training in Hyderabad

      ReplyDelete
    37. Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book ANDAMAN HOLIDAY PACKAGES @ 35999

      ReplyDelete
    38. Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book CHEAP ANDAMAN PACKAGES @9999

      ReplyDelete
    39. Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book Andaman Tourism

      ReplyDelete
    40. Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book Best Travel Agency In India

      ReplyDelete
    41. Hi Thanks for the nice information its very useful to read your blog. We provide About Best Software Development Services

      ReplyDelete
    42. Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book ANDAMAN TOUR PACKAGE@14599/

      ReplyDelete
    43. AWS Training in Bangalore - Live Online & Classroom
      myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.

      IOT Training in Bangalore - Live Online & Classroom
      IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

      ReplyDelete
    44. Hi Thanks for the nice information its very useful to read your blog. We provide best Find All Isfs Courses

      ReplyDelete
    45. Hi Thanks for the nice information its very useful to read your blog. We provide best Massil Technologies

      ReplyDelete
    46. Hi Thanks for the nice information its very useful to read your blog. We provide best Association Of Chartered Certified Accountants

      ReplyDelete
    47. Your article gives lots of information to me. Thanks for sharing.
      cima courses in hyderabad | ISFS

      ReplyDelete
    48. I am really enjoying reading your well written articles.
      It looks like you spend a lot of effort and time on your blog.
      I have bookmarked it and I am looking forward to reading new articles. Keep up the good work..
      Java Coaching Institutes in Bangalore
      Advanced Java Training Institute in Bangalore
      Best Institute For Java Course in Bangalore
      Java Training Classes in Bangalore
      hadoop course in bangalore
      best hadoop training institutes in bangalore

      ReplyDelete
    49. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...

      mbatalks
      Guest posting sites

      ReplyDelete
    50. Thanks first of all for the useful info.
      the idea in this article is quite different and innovative please update more.
      Java Training Institutes in Bangalore
      Java Training in Perambur
      Java Training in Ashok Nagar
      Java Training in Kelambakkam

      ReplyDelete
    51. I believe that your blog will surely help the readers who are really in need of this vital piece of information. Waiting for your updates.
      Selenium Training in Bangalore
      Selenium Training Institutes in Bangalore

      ReplyDelete
    52. This is a good post. This post give truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. thank you so much. Keep up the good works.
      Android Development Course in Chennai
      Android app Development Course in Chennai
      Android Training Institute in Chennai
      AWS Certification Training in Chennai
      AWS Training near me
      AWS Training in Chennai

      ReplyDelete

    Salam blogger...

     

    Blog Status

    Free Hit Counter
    HTML Counter
    free counters

    Followers