Sınıf Çıktısı
Sınıfın raporu şeklen şöyle. Burada hem Missed Instructions var.
Bir başkası şöyle. Burada Missed Instructions yok, ama Missed Branches var.
Sütunların açıklaması şöyle
Missed Instructions and Cov. — This gives a graphical and percentage measurement of the number of Java bytecode instructions that have been covered in tests. Red means uncovered, green means covered.Missed Branches and Cov. — This gives a graphical and percentage measurement of the number of _branches_ that have been covered in tests. A branch is a decision point in your code and you need to provide (at least) a test for each possible way a decision could go in order to get complete coverage.Missed and Cxty — Here’s where we find the cyclomatic complexity score for your source code. At the package level, this is the sum of the scores for all the methods in all of the classes in the package. At the class level, it’s the sum of scores for all of the methods in the class, and at the method level, it’s the score for the method.Missed and Lines — This is the number of lines of code and how many lines don’t have complete coverage.Missed and Methods — This is the number of methods and the number of methods that don’t have complete coverage.Missed and Classes — This is the number of classes, including inner classes, and the number of classes that don’t have at least some code coverage.
Metod Çıktısı
Her bir metodun üzerine tıklarsak kodu ve kapsamayı gösterir. Kod satırlarına bakarsak kırmızı, sarı ve yeşil renkler görürüz. Açıklaması şöyleThe code is colored red, yellow, or green to indicate whether there is no, partial, or complete code coverage for each line. The class name is highlighted in green to show that the default constructor has been invoked ...
Şeklen şöyle. Burada key == null koşulu test edilmediği için satır sarı renkte.
Hiç yorum yok:
Yorum Gönder