Class TestResult

java.lang.Object
com.pulumi.test.TestResult

public class TestResult extends Object
A test result information.
  • Constructor Details

  • Method Details

    • exitCode

      public int exitCode()
    • resources

      public List<Resource> resources()
    • exceptions

      public List<Exception> exceptions()
    • errors

      public List<String> errors()
    • outputs

      public Map<String,Output<?>> outputs()
    • output

      public Output<Object> output(String name)
      Gets an output associated with the given name.
      Parameters:
      name - the stack output name
      Returns:
      an output associated with the given name
    • output

      public <T> Output<T> output(String name, Class<T> type)
      Gets an output associated with the given name and casts the value to the given type.
      Type Parameters:
      T - the stack output type
      Parameters:
      name - the stack output name
      type - the stack output Class to use for casting
      Returns:
      an output associated with the given name
    • throwOnError

      public TestResult throwOnError()
      Throw RunException if we've encountered an exception or return TestResult otherwise.
      Returns:
      this TestResult