X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.pythonlink%2Ftest%2Forg%2Fsimantics%2Fpythonlink%2Ftest%2FScriptTests.java;h=22f81fe2673f0d64078c081d4040d8f258480cb6;hb=15304b7c3168ef89c47dcfcfb4cf34c72000a75f;hp=6a8bdae4fce3bcd777de556191c8528681a73260;hpb=41e86809c6f381612bdc8ffd4f4013aba39d1db1;p=simantics%2Fpython.git diff --git a/org.simantics.pythonlink/test/org/simantics/pythonlink/test/ScriptTests.java b/org.simantics.pythonlink/test/org/simantics/pythonlink/test/ScriptTests.java index 6a8bdae..22f81fe 100644 --- a/org.simantics.pythonlink/test/org/simantics/pythonlink/test/ScriptTests.java +++ b/org.simantics.pythonlink/test/org/simantics/pythonlink/test/ScriptTests.java @@ -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(); } }