Class PythonUnitTest


  • public class PythonUnitTest
    extends java.lang.Object
    Executes 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 void main​(java.lang.String[] args)
      Runs a python command on CLI to evaluate the python service script on build time.
      static java.lang.String runPythonTest​(java.lang.String[] cmd, java.lang.String workingDirectory)
      Running the syntax check for the python Files.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PythonUnitTest

        public PythonUnitTest()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.util.concurrent.ExecutionException
        Runs 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 file
        workingDirectory - the directory of the python tests
        Returns:
        The output to add to the other outputs