Class TestPlanReader

java.lang.Object
io.qameta.allure.testfilter.TestPlanReader

public class TestPlanReader extends Object
Reads Allure test plans without exposing the bundled JSON implementation.
  • Constructor Details

    • TestPlanReader

      public TestPlanReader()
      Creates a reader for supported Allure test-plan schema versions.
  • Method Details

    • read

      public TestPlan read(Path path) throws IOException
      Reads a test plan from a file.
      Parameters:
      path - the file to read.
      Returns:
      parsed test plan.
      Throws:
      IOException - if the file cannot be read or parsed.
    • read

      public TestPlan read(InputStream stream) throws IOException
      Reads a test plan from a stream.
      Parameters:
      stream - the stream to read.
      Returns:
      parsed test plan.
      Throws:
      IOException - if the stream cannot be parsed.