]> gerrit.simantics Code Review - simantics/python.git/blobdiff - org.simantics.pythonlink/test/org/simantics/pythonlink/test/ScriptTests.java
Added support for dynamically typed data access and a Variable interface.
[simantics/python.git] / org.simantics.pythonlink / test / org / simantics / pythonlink / test / ScriptTests.java
index 6a8bdae4fce3bcd777de556191c8528681a73260..22f81fe2673f0d64078c081d4040d8f258480cb6 100644 (file)
@@ -1,12 +1,37 @@
 package org.simantics.pythonlink.test;
 
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
 import org.junit.Test;
+import org.simantics.PlatformException;
+import org.simantics.Simantics;
+import org.simantics.application.arguments.Arguments;
+import org.simantics.pythonlink.PythonContext;
 
 public class ScriptTests extends ScriptTestBase {
+    static IProgressMonitor progress = new NullProgressMonitor();
     
+    PythonContext python;
+
+    @BeforeClass
+    public static void SetUpClass() throws PlatformException {
+        Simantics.startUpHeadless(Arguments.parse(new String[] {}), progress);
+    }
+
+    @AfterClass
+    public static void TearDownClass() throws PlatformException {
+        Simantics.shutdown(progress);
+    }
+
     public ScriptTests() {
         super("scripts");
     }
 
     @Test public void Python() throws Exception { test(); }
+    @Test public void Matplotlib() throws Exception { test(); }
+    @Test public void NDArray() throws Exception { test(); }
+    @Test public void Variant() throws Exception { test(); }
+    @Test public void Variable() throws Exception { test(); }
 }