title: Jacoco + JUnit 5.0 DynamicTest not working
body: <p>I am trying to generate a code coverage report using Jacoco with JUnit 5 and Spring Boot. And I"m trying to use the DynamicTest feature of JUnit 5. It runs successfully but the Dynamic Tests are not covered in the test coverage report generated by jacoco. Is JUnit 5 Dynamic Test not covered by Jacoco at the moment?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>    @RunWith(JUnitPlatform.class)
      @SelectPackages("com.troll.jpt.abc.model")
      @SelectClasses({Status.class})
      public class DynamicModelTester {
  
      private Status status;
  
      @BeforeEach
      public void setUp() {
          status = new Status();
      }
  
      @TestFactory
      public Stream&lt;DynamicTest&gt; checkDynamicTestsFromStream() {
  
          List&lt;String&gt; input = Arrays.asList("abc");
          List&lt;String&gt; output = Arrays.asList("abc");
  
          status.setCode(input.get(0));
  
          return input.stream().map(str -&gt;  DynamicTest.dynamicTest("status test", () -&gt; {
              assertEquals(output.get(0), status.getCode());
          }));
      }
  }
  </code></pre>
  
  <p>The jacoco plugin I'm using is as :</p>
  
  <pre><code>    &lt;plugin&gt;
          &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
          &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;0.8.2-SNAPSHOT&lt;/version&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;prepare-agent&lt;/id&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;prepare-agent&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;/execution&gt;
              &lt;execution&gt;
                  &lt;id&gt;report&lt;/id&gt;
                  &lt;phase&gt;prepare-package&lt;/phase&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;report&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;/execution&gt;
              &lt;execution&gt;
                  &lt;id&gt;post-unit-test&lt;/id&gt;
                  &lt;phase&gt;test&lt;/phase&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;report&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                      &lt;!-- Sets the path to the file which contains the execution data. --&gt;
  
                      &lt;dataFile&gt;target/jacoco.exec&lt;/dataFile&gt;
                      &lt;!-- Sets the output directory for the code coverage report. --&gt;
                      &lt;outputDirectory&gt;target/jacoco-ut&lt;/outputDirectory&gt;
                  &lt;/configuration&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
              &lt;systemPropertyVariables&gt;
                  &lt;jacoco-agent.destfile&gt;target/jacoco.exec&lt;/jacoco-agent.destfile&gt;
              &lt;/systemPropertyVariables&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>