| /******************************************************************************* |
| * Copyright (c) 2008, 2012 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.Test; |
| import junit.framework.TestSuite; |
| import junit.textui.TestRunner; |
| |
| import org.eclipse.acceleo.common.tests.suite.CommonTestSuite; |
| import org.eclipse.acceleo.compatibility.tests.suite.CompatibilityTestSuite; |
| import org.eclipse.acceleo.engine.tests.suite.EngineTestSuite; |
| import org.eclipse.acceleo.tests.suite.utils.TraceabilityActivationTest; |
| |
| /** |
| * This suite will launch all the tests defined for the Acceleo project. |
| * |
| * @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a> |
| */ |
| @SuppressWarnings("nls") |
| 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() { |
| final TestSuite suite = new TestSuite("Acceleo test suite"); |
| |
| final TestSuite classicSuite = new TestSuite("Testing Acceleo With Traceability Disabled"); |
| classicSuite.addTest(CommonTestSuite.suite()); |
| classicSuite.addTest(CompatibilityTestSuite.suite()); |
| classicSuite.addTest(EngineTestSuite.suite()); |
| // classicSuite.addTest(org.eclipse.acceleo.ide.ui.tests.suite.AllTests.suite()); |
| classicSuite.addTest(org.eclipse.acceleo.parser.tests.suite.AllTests.suite()); |
| classicSuite.addTest(org.eclipse.acceleo.traceability.tests.suite.AllTests.suite()); |
| |
| final TestSuite traceabilitySuite = new TestSuite("Testing Acceleo With Traceability Enabled"); |
| traceabilitySuite.addTestSuite(TraceabilityActivationTest.class); |
| |
| traceabilitySuite.addTest(CommonTestSuite.suite()); |
| traceabilitySuite.addTest(CompatibilityTestSuite.suite()); |
| traceabilitySuite.addTest(EngineTestSuite.suite()); |
| // traceabilitySuite.addTest(org.eclipse.acceleo.ide.ui.tests.suite.AllTests.suite()); |
| traceabilitySuite.addTest(org.eclipse.acceleo.parser.tests.suite.AllTests.suite()); |
| traceabilitySuite.addTest(org.eclipse.acceleo.traceability.tests.suite.AllTests.suite()); |
| |
| suite.addTest(classicSuite); |
| suite.addTest(traceabilitySuite); |
| return suite; |
| } |
| |
| } |