Class PythonUnitTest
- java.lang.Object
-
- de.iip_ecosphere.platform.services.environment.PythonUnitTest
-
public class PythonUnitTest extends java.lang.ObjectExecutes syntactic tests on Python scripts.- Author:
- Alexander Weber, SSE
-
-
Constructor Summary
Constructors Constructor Description PythonUnitTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Runs a python command on CLI to evaluate the python service script on build time.static java.lang.StringrunPythonTest(java.lang.String[] cmd, java.lang.String workingDirectory)Running the syntax check for the python Files.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.util.concurrent.ExecutionExceptionRuns a python command on CLI to evaluate the python service script on build time.- Parameters:
args- Args. No used.- Throws:
java.util.concurrent.ExecutionException- Whe nthe python Test fails.
-
runPythonTest
public static java.lang.String runPythonTest(java.lang.String[] cmd, java.lang.String workingDirectory)Running the syntax check for the python Files.- Parameters:
cmd- the command to run, shall run a python fileworkingDirectory- the directory of the python tests- Returns:
- The output to add to the other outputs
-
-