1/*******************************************************************************
2 * Copyright (c) 2009, 2018 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 *    Brock Janiczak - initial API and implementation
10 *
11 *******************************************************************************/
12package org.jacoco.ant;
13
14import java.io.File;
15
16import junit.framework.TestSuite;
17
18import org.apache.ant.antunit.junit3.AntUnitSuite;
19import org.apache.ant.antunit.junit4.AntUnitSuiteRunner;
20import org.junit.runner.RunWith;
21
22@RunWith(AntUnitSuiteRunner.class)
23public class ReportTaskTest {
24
25	public static TestSuite suite() {
26		System.setProperty("org.jacoco.ant.reportTaskTest.classes.dir",
27				TestTarget.getClassPath());
28		System.setProperty("org.jacoco.ant.reportTaskTest.sources.dir",
29				new File("./src").getAbsolutePath());
30		final File file = new File("src/org/jacoco/ant/ReportTaskTest.xml");
31		return new AntUnitSuite(file, ReportTaskTest.class);
32	}
33
34}
35