| /** |
| * |
| * Copyright 2004 James Strachan |
| * |
| * 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.antlr; |
| |
| import junit.framework.Test; |
| import junit.framework.TestSuite; |
| |
| import java.io.File; |
| |
| /** |
| * A test suite which recurses through all of the available test case in |
| * the test-new area |
| * |
| * @version $Revision$ |
| */ |
| public class AllTests extends TestSuiteSupport { |
| |
| static String[] excludedTests = { |
| |
| "LeftShiftTest.groovy", // TODO: can't parse foo.bar << something |
| "StreamingMarkupTest.groovy", // TODO: can't parse foo.bar << |
| "BuilderSupportTest.groovy", // TODO: can't parse foo.bar << |
| "bugs/ForAndSqlBug.groovy", // TODO: can't parse foo.bar << |
| "PrintTest.groovy", // TODO: can't parse foo.bar << |
| "Groovy308_Bug.groovy", // TODO: can't parse foo.bar << |
| |
| |
| "EscapedUnicodeTest.groovy", // TODO: parser unicode handling |
| |
| "ClosureTest.groovy", // TODO: need method pointers syntax |
| |
| |
| // TODO: Parser decisions to make |
| "DoWhileLoopTest.groovy", // TODO: do { } while () not supported yet |
| "LoopBreakTest.groovy", // TODO: do { } while () not supported yet |
| "SafeNavigationTest.groovy", // TODO: should we support -> safe navigation token? |
| |
| |
| // Ignored test cases which can't easily be run in this harness |
| // due to classpath issues |
| // (run them when we migrate New Groovy into groovy/groovy-core) |
| //------------------------------------------------------------------------- |
| "SqlCompleteTest.groovy", // not easy to run from in IDE... |
| "SqlCompleteWithoutDataSourceTest.groovy", // not easy to run from in IDE... |
| "SqlWithBuilderTest.groovy", // not easy to run from in IDE... |
| "SqlWithTypedResultsTest.groovy", // not easy to run from in IDE... |
| "SerializeTest.groovy", // not easy to run from in IDE... |
| "SubscriptTest.groovy", |
| "ConstructorBug.groovy", |
| "PropertyTest.groovy", |
| "PrintlnWithNewBug.groovy", |
| "dom/DOMTest.groovy", |
| "SuperMethod2Bug.groovy", |
| "SuperMethodBug.groovy", |
| }; |
| |
| public static Test suite() { |
| TestSuite suite = new TestSuite(); |
| addTests(suite, new File("../../../../groovy-core/src/test-new/groovy"), excludedTests); |
| return suite; |
| } |
| |
| } |