]> gerrit.simantics Code Review - simantics/python.git/blobdiff - org.simantics.pythonlink/test/org/simantics/pythonlink/test/ScriptTests.java
Add missing PythonCompatible instances.
[simantics/python.git] / org.simantics.pythonlink / test / org / simantics / pythonlink / test / ScriptTests.java
index 4c5318a87d9f21b4f721ee20adb3f4eddb692070..22f81fe2673f0d64078c081d4040d8f258480cb6 100644 (file)
@@ -1,16 +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 Arithmetic() throws Exception { test(); }
-    @Test public void Functions() throws Exception { test(); }
-    @Test public void Functions2() throws Exception { test(); }
-    @Test public void Lists() throws Exception { test(); }
-    
+    @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(); }
 }