aboutsummaryrefslogtreecommitdiffstats
path: root/jacoco-maven-plugin.test/it/it-report-aggregate/verify.bsh
diff options
context:
space:
mode:
Diffstat (limited to 'jacoco-maven-plugin.test/it/it-report-aggregate/verify.bsh')
-rw-r--r--jacoco-maven-plugin.test/it/it-report-aggregate/verify.bsh12
1 files changed, 9 insertions, 3 deletions
diff --git a/jacoco-maven-plugin.test/it/it-report-aggregate/verify.bsh b/jacoco-maven-plugin.test/it/it-report-aggregate/verify.bsh
index 80f6bc29..72fed737 100644
--- a/jacoco-maven-plugin.test/it/it-report-aggregate/verify.bsh
+++ b/jacoco-maven-plugin.test/it/it-report-aggregate/verify.bsh
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors
+ * Copyright (c) 2009, 2019 Mountainminds GmbH & Co. KG and Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -22,8 +22,14 @@ if ( !Pattern.compile( "Loading execution data file \\S*child1-test.target.jacoc
throw new RuntimeException( "Execution data from child1-test was not loaded." );
}
-if ( !Pattern.compile( "Loading execution data file \\S*child2.target.jacoco.exec").matcher( buildLog ).find() ) {
- throw new RuntimeException( "Execution data from child2 was not loaded." );
+if ( !new File( basedir, "child2/target/jacoco.exec" ).isFile()) {
+ throw new RuntimeException( "No execution data in child2." );
+}
+if ( Pattern.compile( "Loading execution data file \\S*child2.target.jacoco.exec").matcher( buildLog ).find() ) {
+ throw new RuntimeException( "Execution data from child2 was loaded, whereas range should exclude it." );
+}
+if ( !Pattern.compile( "Loading execution data file \\S*child2v2.target.jacoco.exec").matcher( buildLog ).find() ) {
+ throw new RuntimeException( "Execution data from child2v2 was not loaded." );
}
if ( !Pattern.compile( "Loading execution data file \\S*report.target.jacoco.exec").matcher( buildLog ).find() ) {