Permalink
Browse files

separate class running module tests

add new tests runconfiguration
  • Loading branch information...
1 parent b93c4f6 commit 0c555f1b2362222b878e76bb12b7ccffccd263de @juliabeliaeva juliabeliaeva committed Jul 21, 2011
@@ -0,0 +1,30 @@
+<component name="ProjectRunConfigurationManager">
+ <configuration default="false" name="ModuleTestSuite" type="JUnit" factoryName="JUnit">
+ <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
+ <module name="testbench" />
+ <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
+ <option name="ALTERNATIVE_JRE_PATH" value="" />
+ <option name="PACKAGE_NAME" value="" />
+ <option name="MAIN_CLASS_NAME" value="ModuleTestSuite" />
+ <option name="METHOD_NAME" value="" />
+ <option name="TEST_OBJECT" value="class" />
+ <option name="VM_PARAMETERS" value="-ea -Xss1024k -Xmx1200m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -client " />
+ <option name="PARAMETERS" value="" />
+ <option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
+ <option name="ENV_VARIABLES" />
+ <option name="PASS_PARENT_ENVS" value="true" />
+ <option name="TEST_SEARCH_SCOPE">
+ <value defaultName="singleModule" />
+ </option>
+ <envs>
+ <env name="useNewTypeSystem" value="true" />
+ </envs>
+ <patterns />
+ <RunnerSettings RunnerId="Profile ">
+ <option name="myExternalizedOptions" value="&#10;additional-options2=onexit\=snapshot&#10;" />
+ </RunnerSettings>
+ <method>
+ <option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/testbench/cleanup.xml" target="cleanup" />
+ </method>
+ </configuration>
+</component>
@@ -1,4 +1,3 @@
-+testbench:**/TestModule*.java
+miscTests:**/*Test.java
+kernel:jetbrains/mps/dataFlow/lang/**/*Test.java
+runtime:jetbrains/mps/runtime/**/*Test.java
@@ -0,0 +1 @@
++testbench:**/TestModule*.java
@@ -40,29 +40,6 @@
"jetbrains.mps.refactoring.RefactoringTest",
"jetbrains.mps.runtime.BundleLoadingTest",
"jetbrains.mps.runtime.BundleTest",
- "jetbrains.mps.tests.TestModule_closures_test",
- "jetbrains.mps.tests.TestModule_collections_trove_test",
- "jetbrains.mps.tests.TestModule_collections_unittest",
- "jetbrains.mps.tests.TestModule_dates_unittest",
- "jetbrains.mps.tests.TestModule_internalCollections_test",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_closures_unittest",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_math_tests",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_regexp_unittest",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_test",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_tuples_test",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_unittest",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_debug_tests",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_graphLayout_test",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_lang_editor_table_tests",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_lang_editor_tests",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_lang_pattern_test",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_lang_smodel_unittest",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_make_tests",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_smodel_test",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_traceInfo_test",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_ui_unittest",
- "jetbrains.mps.tests.TestModule_jetbrains_mps_xml_tests",
- "jetbrains.mps.tests.TestModule_ypath_test",
"jetbrains.mps.vcs.diff.MergeConceptAndImportsTest",
"jetbrains.mps.vcs.diff.MergeNotLoseExternalChangesTest",
"jetbrains.mps.vcs.diff.MergeReferencesTest",
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2003-2011 JetBrains s.r.o.
+ *
+ * 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.
+ */
+import jetbrains.mps.TestMain;
+import jetbrains.mps.testbench.MpsMakeHelper;
+import jetbrains.mps.testbench.junit.runners.SymbolicSuite.SuiteClassSymbols;
+import jetbrains.mps.testbench.junit.runners.WatchingSuite;
+import junit.framework.TestSuite;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.runner.RunWith;
+
+
+@SuiteClassSymbols({"jetbrains.mps.tests.TestModule_closures_test",
+ "jetbrains.mps.tests.TestModule_collections_trove_test",
+ "jetbrains.mps.tests.TestModule_collections_unittest",
+ "jetbrains.mps.tests.TestModule_dates_unittest",
+ "jetbrains.mps.tests.TestModule_internalCollections_test",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_closures_unittest",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_math_tests",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_regexp_unittest",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_test",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_tuples_test",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_baseLanguage_unittest",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_debug_tests",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_graphLayout_test",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_lang_editor_table_tests",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_lang_editor_tests",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_lang_pattern_test",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_lang_smodel_unittest",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_make_tests",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_smodel_test",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_traceInfo_test",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_ui_unittest",
+ "jetbrains.mps.tests.TestModule_jetbrains_mps_xml_tests",
+ "jetbrains.mps.tests.TestModule_ypath_test"})
+@RunWith(WatchingSuite.class)
+public class ModuleTestSuite extends TestSuite {
+ @BeforeClass
+ public static void make () throws Exception {
+ new MpsMakeHelper().make();
+ }
+
+ @AfterClass
+ public static void shutdown() {
+ TestMain.PROJECT_CONTAINER.clear();
+ }
+}

0 comments on commit 0c555f1

Please sign in to comment.