Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test suite for all JDT regression tests and added a couple missing
suites to GroovyJDTTests.
- Loading branch information
1 parent
17126e7
commit 65bc00b
Showing
3 changed files
with
124 additions
and
69 deletions.
There are no files selected for viewing
43 changes: 19 additions & 24 deletions
43
...t/org.codehaus.groovy.alltests/src/org/codehaus/groovy/alltests/AllGroovyAndJDTTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,30 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2014 Pivotal Software Inc. | ||
* | ||
* 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: | ||
* Kris De Volder - initial API and implementation | ||
*******************************************************************************/ | ||
|
||
/* | ||
* Copyright 2014-2016 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.codehaus.groovy.alltests; | ||
|
||
import junit.framework.Test; | ||
import junit.framework.TestSuite; | ||
|
||
/** | ||
* @author Kris De Volder | ||
* | ||
* Groovy plugin tests | ||
*/ | ||
public class AllGroovyAndJDTTests { | ||
public static Test suite() throws Exception { | ||
// ensure that the compiler chooser starts up | ||
GroovyTestSuiteSupport.initializeCompilerChooser(); | ||
|
||
TestSuite suite = new TestSuite(AllGroovyAndJDTTests.class.getName()); //$NON-NLS-1$ | ||
|
||
suite.addTest(AllGroovyTests.suite()); //This must be first because of test that check startup log contents! | ||
TestSuite suite = new TestSuite("All Groovy-Eclipse tests"); | ||
// AGT must be first because it checks startup log contents | ||
suite.addTest(AllGroovyTests.suite()); | ||
suite.addTest(GroovyJDTTests.suite()); | ||
|
||
suite.addTest(JavaJDTTests.suite()); | ||
return suite; | ||
} | ||
} |
89 changes: 44 additions & 45 deletions
89
ide-test/org.codehaus.groovy.alltests/src/org/codehaus/groovy/alltests/GroovyJDTTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
ide-test/org.codehaus.groovy.alltests/src/org/codehaus/groovy/alltests/JavaJDTTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* Copyright 2016 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.codehaus.groovy.alltests; | ||
|
||
import junit.framework.Test; | ||
import junit.framework.TestSuite; | ||
|
||
import org.eclipse.jdt.core.tests.builder.*; | ||
|
||
/** | ||
* All JDT regression tests. | ||
* | ||
* @author Eric Milles | ||
* @created Sep 21, 2016 | ||
*/ | ||
public class JavaJDTTests { | ||
|
||
public static Test suite() throws Exception { | ||
TestSuite suite = new TestSuite(JavaJDTTests.class.getName()); | ||
|
||
// JDT Builder regression tests | ||
suite.addTest(AbstractMethodTests.suite()); | ||
suite.addTest(BasicBuildTests.suite()); | ||
suite.addTest(BuildpathTests.suite()); | ||
suite.addTest(CopyResourceTests.suite()); | ||
suite.addTest(DependencyTests.suite()); | ||
suite.addTest(EfficiencyTests.suite()); | ||
suite.addTest(ErrorsTests.suite()); | ||
suite.addTest(ExecutionTests.suite()); | ||
suite.addTest(GetResourcesTests.suite()); | ||
suite.addTest(IncrementalTests.suite()); | ||
suite.addTest(Java50Tests.suite()); | ||
suite.addTest(MultiProjectTests.suite()); | ||
suite.addTest(MultiSourceFolderAndOutputFolderTests.suite()); | ||
suite.addTest(OutputFolderTests.suite()); | ||
suite.addTest(PackageInfoTest.suite()); | ||
suite.addTest(PackageTests.suite()); | ||
suite.addTest(ParticipantBuildTests.suite()); | ||
suite.addTest(StaticFinalTests.suite()); | ||
|
||
// JDT Compiler regression tests | ||
suite.addTest(org.eclipse.jdt.core.tests.eval.TestAll.suite()); | ||
suite.addTest(org.eclipse.jdt.core.tests.compiler.parser.TestAll.suite()); | ||
suite.addTest(org.eclipse.jdt.core.tests.compiler.regression.TestAll.suite()); | ||
|
||
return suite; | ||
} | ||
} |