Properties

archiver: {
    add: ((id: string, artifactPath: string) => Promise<void>);
    getStream: ((id: string, artifactPath: string) => Promise<WriteStream>);
}

Type declaration

  • add: ((id: string, artifactPath: string) => Promise<void>)

    Archive a file to be later sent to the client as an artifact.

      • (id, artifactPath): Promise<void>
      • Parameters

        • id: string

          The name of the directory in which logs will be archived. Usuallly this value is the name of the test suite (Available in the test using this.id)

        • artifactPath: string

          The absolute path of the file needed to be archived.

        Returns Promise<void>

  • getStream: ((id: string, artifactPath: string) => Promise<WriteStream>)

    Archive the file as a stream to be later sent to the client as an artifact.

      • (id, artifactPath): Promise<WriteStream>
      • Parameters

        • id: string

          The name of the directory in which logs will be archived. Usuallly this value is the name of the test suite (Available in the test using this.id)

        • artifactPath: string

          The absolute path of the file needed to be archived.

        Returns Promise<WriteStream>

        stream of the file

context: export=
id: any
suite: any
teardown: {
    register: ((fn: any) => void);
    run: (() => Promise<void>);
}

Methods

  • Returns {
        info: ((message: any) => void);
        log: ((message: any) => void);
        status: ((message: any) => void);
    }

    • info: ((message: any) => void)
        • (message): void
        • Parameters

          • message: any

          Returns void

    • log: ((message: any) => void)
        • (message): void
        • Parameters

          • message: any

          Returns void

    • status: ((message: any) => void)
        • (message): void
        • Parameters

          • message: any

          Returns void