blob: 53cbe68d405f826913c1d958485c89afd17abd0b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2002, 2016 IBM Corporation 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:
* IBM - Initial API and implementation
* E.D.Willink - Bug 298634
*******************************************************************************/
package org.eclipse.qvtd.xtext.qvtcore.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;
/**
* Tests for the Xtext QVTc editor support.
*/
@SuppressWarnings("nls")
public class AllQVTcoreTests extends TestCase
{
public AllQVTcoreTests() {
super("");
}
public static Test suite() {
TestSuite result = new TestSuite("All QVTcore Tests");
result.addTestSuite(LoadTests.class);
result.addTestSuite(QVTcDomainUsageTests.class);
result.addTestSuite(QVTcSerializeTests.class);
if (!EMFPlugin.IS_ECLIPSE_RUNNING) { // FIXME should work as plugin test too
result.addTestSuite(QVTcCompilerTests.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."});
}
}