1 /******************************************************************************* 2 * Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors 3 * This program and the accompanying materials are made available under 4 * the terms of the Eclipse Public License 2.0 which is available at 5 * http://www.eclipse.org/legal/epl-2.0 6 * 7 * SPDX-License-Identifier: EPL-2.0 8 * 9 * Contributors: 10 * Brock Janiczak - initial API and implementation 11 * 12 *******************************************************************************/ 13 package org.jacoco.ant; 14 15 import java.io.File; 16 17 import org.apache.ant.antunit.junit3.AntUnitSuite; 18 import org.apache.ant.antunit.junit4.AntUnitSuiteRunner; 19 import org.junit.runner.RunWith; 20 21 import junit.framework.TestSuite; 22 23 @RunWith(AntUnitSuiteRunner.class) 24 public class ReportTaskTest { 25 suite()26 public static TestSuite suite() { 27 System.setProperty("org.jacoco.ant.reportTaskTest.classes.dir", 28 TestTarget.getClassPath()); 29 System.setProperty("org.jacoco.ant.reportTaskTest.sources.dir", 30 new File("./src").getAbsolutePath()); 31 final File file = new File("src/org/jacoco/ant/ReportTaskTest.xml"); 32 return new AntUnitSuite(file, ReportTaskTest.class); 33 } 34 35 } 36