Home Identifier Source Test Repository
public class | source

ReporterBase

Base reporter class

Constructor Summary

Public Constructor
public

constructor(reporter: Object)

constructor

Member Summary

Private Members
private

_logger: *

Logger instance

Method Summary

Public Methods
public

saveReportFile(configurationName: String, type: String, content: String, date: String): Promise

Saves report to file

Protected Methods
protected

createReportFolder(configurationName: String): *

Creates folder named as given configurationName inside reports folder

protected

Creates reports folder in current work directory

Public Constructors

public constructor(reporter: Object) source

constructor

Params:

NameTypeAttributeDescription
reporter Object

options

Private Members

private _logger: * source

Logger instance

Public Methods

public saveReportFile(configurationName: String, type: String, content: String, date: String): Promise source

Saves report to file

Params:

NameTypeAttributeDescription
configurationName String

name of configuration

type String

of report

content String

of report

date String

formatted

Return:

Promise

Protected Methods

protected createReportFolder(configurationName: String): * source

Creates folder named as given configurationName inside reports folder

Params:

NameTypeAttributeDescription
configurationName String

name of configuration file

Return:

*

void 0

protected createReportsFolder(): * source

Creates reports folder in current work directory

Return:

*

void 0