blob: e9cf077b80a946e7164954ece37ea74d888d69c5 [file] [log] [blame]
Evgeny Mandrikovb5d4e9b2011-06-26 04:30:13 +00001/*******************************************************************************
2 * Copyright (c) 2009, 2011 Mountainminds GmbH & Co. KG and Contributors
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Evgeny Mandrikov - initial API and implementation
10 *
11 *******************************************************************************/
12import java.io.*;
13
Evgeny Mandrikov8bce48c2011-07-01 10:52:43 +000014File dump2 = new File( basedir, "skip-child/target/jacoco.exec" );
15if ( dump2.isFile() ) {
16 throw new RuntimeException( "Should not be executed for module 'skip-child', but dump found : " + dump2 );
17}
18
Evgeny Mandrikov16a2a0c2011-06-26 23:17:08 +000019File file = new File( basedir, "child/target/jacoco.exec" );
Evgeny Mandrikovb5d4e9b2011-06-26 04:30:13 +000020if ( !file.isFile() )
21{
22 throw new FileNotFoundException( "Could not find generated dump: " + file );
23}
24
Evgeny Mandrikov16a2a0c2011-06-26 23:17:08 +000025File xmlReport = new File( basedir, "child/target/site/jacoco/jacoco.xml" );
Evgeny Mandrikovb5d4e9b2011-06-26 04:30:13 +000026if ( !xmlReport.isFile() )
27{
28 throw new FileNotFoundException( "Could not find generated XML report: " + xmlReport );
29}
30
Evgeny Mandrikov16a2a0c2011-06-26 23:17:08 +000031File csvReport = new File( basedir, "child/target/site/jacoco/jacoco.csv" );
Evgeny Mandrikovb5d4e9b2011-06-26 04:30:13 +000032if ( !csvReport.isFile() )
33{
34 throw new FileNotFoundException( "Could not find generated CSV report: " + csvReport );
35}
36
Evgeny Mandrikov16a2a0c2011-06-26 23:17:08 +000037File htmlReport = new File( basedir, "child/target/site/jacoco/index.html" );
Evgeny Mandrikovb5d4e9b2011-06-26 04:30:13 +000038if ( !htmlReport.isFile() )
39{
40 throw new FileNotFoundException( "Could not find generated HTML report: " + htmlReport );
41}