Examples of coveragePerTest()


Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.coveragePerTest()

        .put("sonar.sources", "src")
        .put("sonar.tests", "test")
        .build())
      .start();

    assertThat(result.coveragePerTest(new DefaultInputFile("com.foo.project", "test/sampleTest.xoo"), "test1", new DefaultInputFile("com.foo.project", "src/sample.xoo")))
      .containsExactly(1, 2, 3, 8, 9, 10);
    assertThat(result.coveragePerTest(new DefaultInputFile("com.foo.project", "test/sampleTest.xoo"), "test2", new DefaultInputFile("com.foo.project", "src/sample.xoo")))
      .containsExactly(3, 4);
  }
}
View Full Code Here

Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.coveragePerTest()

        .build())
      .start();

    assertThat(result.coveragePerTest(new DefaultInputFile("com.foo.project", "test/sampleTest.xoo"), "test1", new DefaultInputFile("com.foo.project", "src/sample.xoo")))
      .containsExactly(1, 2, 3, 8, 9, 10);
    assertThat(result.coveragePerTest(new DefaultInputFile("com.foo.project", "test/sampleTest.xoo"), "test2", new DefaultInputFile("com.foo.project", "src/sample.xoo")))
      .containsExactly(3, 4);
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.