title: Gitlab Regex for Jacoco Coverage
body: <p>Gitlab allows to <a href="https://gitlab.us/help/user/project/pipelines/settings.md#test-coverage-parsing" rel="nofollow noreferrer">set a regular expression for parsing the coverage from CI jobs</a>. We use Jacoco, which gives an output like this:</p>
  
  <pre><code>[info] ------- Jacoco Coverage Report --------
  [info] 
  [info] Lines: 40.38% (&gt;= required 40.0%) covered, 2265 of 3799 missed, OK
  [info] Instructions: 41.99% (&gt;= required 40.0%) covered, 10727 of 18493 missed, OK
  [info] Branches: 27.79% (&gt;= required 20.0%) covered, 738 of 1022 missed, OK
  [info] Methods: 47.16% (&gt;= required 40.0%) covered, 344 of 651 missed, OK
  [info] Complexity: 34.74% (&gt;= required 30.0%) covered, 759 of 1163 missed, OK
  [info] Class: 58.82% (&gt;= required 50.0%) covered, 49 of 119 missed, OK
  </code></pre>
  
  <p><a href="http://www.rubular.com/r/3hzjgRXxRX" rel="nofollow noreferrer">Using Rubular</a>, the regex <code>Lines:\s(\d+\.\d+%)\s\([^)]+\)\scovered</code> seems to work for the line coverage.</p>
  
  <p>Unfortunately, it does <em>not</em> work in Gitlab?</p>