Skip to main content
summaryrefslogtreecommitdiffstats
blob: 69f537f1220813c32d9489e7cc5c0e3337d6caa7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*******************************************************************************
 * 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(QVTiDomainUsageTests.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."});
	}
}

Back to the top