| /******************************************************************************* |
| * Copyright (c) 2008, 2013 Obeo. |
| * 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 |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Obeo - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.acceleo.tests.suite; |
| |
| import junit.framework.JUnit4TestAdapter; |
| import junit.framework.Test; |
| import junit.textui.TestRunner; |
| |
| import org.eclipse.acceleo.common.tests.suite.AllCommonTests; |
| import org.eclipse.acceleo.engine.tests.suite.AllEngineTests; |
| import org.eclipse.acceleo.parser.tests.suite.AllParserTests; |
| import org.junit.runner.RunWith; |
| import org.junit.runners.Suite; |
| import org.junit.runners.Suite.SuiteClasses; |
| |
| /** |
| * This suite will launch all the tests defined for the Acceleo project. |
| * |
| * @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a> |
| * @author <a href="mailto:stephane.begaudeau@obeo.fr">Stephane Begaudeau</a> |
| */ |
| @RunWith(Suite.class) |
| @SuiteClasses({AllCommonTests.class, AllParserTests.class, AllEngineTests.class, }) |
| public class AllTests { |
| /** |
| * Launches the test with the given arguments. |
| * |
| * @param args |
| * Arguments of the testCase. |
| */ |
| public static void main(String[] args) { |
| TestRunner.run(suite()); |
| } |
| |
| /** |
| * Creates the {@link junit.framework.TestSuite TestSuite} for all the test. |
| * |
| * @return The test suite containing all the tests |
| */ |
| public static Test suite() { |
| return new JUnit4TestAdapter(AllTests.class); |
| } |
| } |