执行connectedCheck后,Realm生成的类包含在coverage报告中

时间:2018-04-10 14:25:58

标签: android testing gradle realm jacoco

问题是Jacoco在执行./gradlew connectedCheck并启用测试覆盖率后报告Realm生成的类。

Realm生成大量代码,这使得覆盖率报告不可靠。

这就是测试覆盖率的样子: Actual coverage report

io.realm报告中删除connectedCheck包的最简单方法是什么?

1 个答案:

答案 0 :(得分:1)

如果我选择Google GithubBrowserSample into account which has the following task in its build.gradle

<!DOCTYPE html>
<head>
  <title>Mugdea</title>
  <style>
    body {

     text-align: center;
      background: url("https://i.imgur.com/YGc2Dtx.gif");
      background-size: cover;
      background-position: center;
      color:white;


      font-family: chiller;
    }
    p {
      font-size: 52px;
    }
    input {
      border: 15;
        padding: 10px;
      font-size: 18px;
    }
         input[type="submit"] {
         background: green;
          color: white;
             }
     </style>
   </head>
   <body>


         <p> I'm Mugdea, a NYC horror writer. Say boo!</p>
          <input type="email" placeholder="Your email">
        <input type="submit">
        
             <img src="https://i.imgur.com/wDVrcNim.jpg">

      enter code here</body>

您很可能会添加Sub GreyMap() Dim cvec(256) As Long, rng As Range, i%, k% Set rng = Range("C1:C256") k = 0 For i = 0 To 255 ' Loop over main diagonal of RGB cube k = k + 1 cvec(k) = RGB(i, i, i) ' Shades of Grey rng.Rows(k) = cvec(k) ' rng.Rows(k).Interior.Color = cvec(k) ' This works, but I don't want to do a cell-by-cell write Next i rng.Interior.Color = cvec ' Is this even a legal VBA command ? End Sub 等文件过滤器。