blob: 8443be08e274638b5c25bdab77444f85a460c433 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013, 2015 Willink Transformations and others.
* 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:
* E.D.Willink - Initial API and implementation
*******************************************************************************/
package org.eclipse.qvtd.xtext.qvtimperative.tests;
import java.util.Arrays;
import org.eclipse.emf.common.EMFPlugin;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
@SuppressWarnings("nls")
public class AllQVTimperativeTests extends TestCase
{
public AllQVTimperativeTests() {
super("");
}
public static Test suite() {
TestSuite result = new TestSuite("All QVTimperative Tests");
result.addTestSuite(QVTiEditorTests.class);
if (!EMFPlugin.IS_ECLIPSE_RUNNING) { // FIXME should work as plugin test too
result.addTestSuite(QVTiInterpreterTests.class);
result.addTestSuite(QVTiCompilerTests.class);
}
result.addTestSuite(QVTiSerializeTests.class);
return result;
}
public Object run(Object args)
throws Exception {
TestRunner.run(suite());
return Arrays.asList(new String[] {"Please see raw test suite output for details."});
}
}