]> gerrit.simantics Code Review - simantics/python.git/commitdiff
Added lauchers for test cases.
authortuorjr <tuorjr@e36c2e66-7d30-0410-bdb2-d9e1f5a6d952>
Mon, 26 Sep 2016 15:55:11 +0000 (15:55 +0000)
committerReino Ruusu <reino.ruusu@vtt.fi>
Tue, 3 Jan 2017 15:09:30 +0000 (17:09 +0200)
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1691 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

org.simantics.pythonlink/runAllTests.launch [new file with mode: 0644]
org.simantics.pythonlink/runScriptTests.launch [new file with mode: 0644]
org.simantics.pythonlink/test/org/simantics/pythonlink/test/AllTests.java [new file with mode: 0644]

diff --git a/org.simantics.pythonlink/runAllTests.launch b/org.simantics.pythonlink/runAllTests.launch
new file mode 100644 (file)
index 0000000..8b34091
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">\r
+<setAttribute key="additional_plugins"/>\r
+<booleanAttribute key="append.args" value="true"/>\r
+<stringAttribute key="application" value="org.eclipse.pde.junit.runtime.coretestapplication"/>\r
+<booleanAttribute key="askclear" value="false"/>\r
+<booleanAttribute key="automaticAdd" value="true"/>\r
+<booleanAttribute key="automaticValidate" value="false"/>\r
+<stringAttribute key="bootstrap" value=""/>\r
+<stringAttribute key="checked" value="[NONE]"/>\r
+<booleanAttribute key="clearConfig" value="true"/>\r
+<booleanAttribute key="clearws" value="true"/>\r
+<booleanAttribute key="clearwslog" value="false"/>\r
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>\r
+<booleanAttribute key="default" value="false"/>\r
+<stringAttribute key="featureDefaultLocation" value="workspace"/>\r
+<stringAttribute key="featurePluginResolution" value="workspace"/>\r
+<booleanAttribute key="includeOptional" value="true"/>\r
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>\r
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">\r
+<listEntry value="/org.simantics.pythonlink/test/org/simantics/pythonlink/test/AllTests.java"/>\r
+</listAttribute>\r
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">\r
+<listEntry value="1"/>\r
+</listAttribute>\r
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>\r
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>\r
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>\r
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>\r
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>\r
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.simantics.pythonlink.test.AllTests"/>\r
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>\r
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.simantics.pythonlink"/>\r
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>\r
+<stringAttribute key="pde.version" value="3.3"/>\r
+<stringAttribute key="product" value="fi.vtt.apros.bootstrap.product"/>\r
+<booleanAttribute key="run_in_ui_thread" value="true"/>\r
+<setAttribute key="selected_features">\r
+<setEntry value="org.simantics.pythonlink:default"/>\r
+<setEntry value="org.simantics.scl:default"/>\r
+</setAttribute>\r
+<booleanAttribute key="show_selected_only" value="false"/>\r
+<booleanAttribute key="tracing" value="false"/>\r
+<booleanAttribute key="useCustomFeatures" value="true"/>\r
+<booleanAttribute key="useDefaultConfig" value="true"/>\r
+<booleanAttribute key="useDefaultConfigArea" value="false"/>\r
+<booleanAttribute key="useProduct" value="false"/>\r
+</launchConfiguration>\r
diff --git a/org.simantics.pythonlink/runScriptTests.launch b/org.simantics.pythonlink/runScriptTests.launch
new file mode 100644 (file)
index 0000000..b4c34eb
--- /dev/null
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">\r
+<setAttribute key="additional_plugins"/>\r
+<booleanAttribute key="append.args" value="true"/>\r
+<stringAttribute key="application" value="org.eclipse.pde.junit.runtime.coretestapplication"/>\r
+<booleanAttribute key="askclear" value="false"/>\r
+<booleanAttribute key="automaticAdd" value="false"/>\r
+<booleanAttribute key="automaticValidate" value="false"/>\r
+<stringAttribute key="bootstrap" value=""/>\r
+<stringAttribute key="checked" value="[NONE]"/>\r
+<booleanAttribute key="clearConfig" value="true"/>\r
+<booleanAttribute key="clearws" value="true"/>\r
+<booleanAttribute key="clearwslog" value="false"/>\r
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>\r
+<booleanAttribute key="default" value="false"/>\r
+<stringAttribute key="featureDefaultLocation" value="workspace"/>\r
+<stringAttribute key="featurePluginResolution" value="workspace"/>\r
+<booleanAttribute key="includeOptional" value="true"/>\r
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>\r
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">\r
+<listEntry value="/org.simantics.pythonlink/test/org/simantics/pythonlink/test/ScriptTests.java"/>\r
+</listAttribute>\r
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">\r
+<listEntry value="1"/>\r
+</listAttribute>\r
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>\r
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>\r
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>\r
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>\r
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>\r
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.simantics.pythonlink.test.ScriptTests"/>\r
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>\r
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.simantics.pythonlink"/>\r
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>\r
+<stringAttribute key="pde.version" value="3.3"/>\r
+<stringAttribute key="product" value="fi.vtt.apros.bootstrap.product"/>\r
+<booleanAttribute key="run_in_ui_thread" value="true"/>\r
+<setAttribute key="selected_features"/>\r
+<stringAttribute key="selected_target_plugins" value="com.ibm.icu@default:default,gnu.trove3@default:default,javax.annotation@default:default,javax.inject@default:default,javax.servlet@default:default,javax.xml@default:default,org.apache.commons.collections@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime@default:true,org.eclipse.equinox.app@default:default,org.eclipse.equinox.bidi@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.ds@1:true,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.util@default:default,org.eclipse.help@default:default,org.eclipse.jface@default:default,org.eclipse.osgi.compatibility.state@default:false,org.eclipse.osgi.services@default:default,org.eclipse.osgi@-1:true,org.eclipse.swt.win32.win32.x86_64@default:false,org.eclipse.swt@default:default,org.hamcrest.core@default:default,org.junit@default:default,org.objectweb.asm.analysis@default:default,org.objectweb.asm.commons@default:default,org.objectweb.asm.tree@default:default,org.objectweb.asm.util@default:default,org.objectweb.asm@default:default"/>\r
+<stringAttribute key="selected_workspace_plugins" value="org.simantics.common@default:default,org.simantics.databoard@default:default,org.simantics.pythonlink.win32.x86_64*1.0.0.qualifier@default:false,org.simantics.pythonlink@default:default,org.simantics.scl.compiler@default:default,org.simantics.scl.osgi@default:default,org.simantics.scl.runtime@default:default"/>\r
+<booleanAttribute key="show_selected_only" value="false"/>\r
+<booleanAttribute key="tracing" value="false"/>\r
+<booleanAttribute key="useCustomFeatures" value="false"/>\r
+<booleanAttribute key="useDefaultConfig" value="true"/>\r
+<booleanAttribute key="useDefaultConfigArea" value="false"/>\r
+<booleanAttribute key="useProduct" value="false"/>\r
+</launchConfiguration>\r
diff --git a/org.simantics.pythonlink/test/org/simantics/pythonlink/test/AllTests.java b/org.simantics.pythonlink/test/org/simantics/pythonlink/test/AllTests.java
new file mode 100644 (file)
index 0000000..3d9bbb2
--- /dev/null
@@ -0,0 +1,11 @@
+package org.simantics.pythonlink.test;\r
+\r
+import org.junit.runner.RunWith;\r
+import org.junit.runners.Suite;\r
+import org.junit.runners.Suite.SuiteClasses;\r
+\r
+@RunWith( Suite.class )\r
+@SuiteClasses( { ScriptTests.class, TestPythonlink.class } )\r
+public class AllTests {\r
+\r
+}\r