reportingtools

package
v2.1.110 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XUnitClient

type XUnitClient interface {
	EnsureXUnitViewer(o *opts.CommonOptions) error
	EnsureNPMIsInstalled() error
	CreateHTMLReport(outputReportName, suiteName, targetFileName string) error
}

XUnitClient is the interface defined for jx interactions with the xunit-viewer client

type XUnitViewer

type XUnitViewer struct{}

XUnitViewer is an implementation of the XUnitClient interface

func (XUnitViewer) CreateHTMLReport

func (c XUnitViewer) CreateHTMLReport(outputReportName, suiteName, targetFileName string) error

CreateHTMLReport uses xunit-viewer to create an HTML report into the outputReportName, with a given suitename, from a given xml report

func (XUnitViewer) EnsureNPMIsInstalled

func (c XUnitViewer) EnsureNPMIsInstalled() error

EnsureNPMIsInstalled makes sure NPM is installed and fails otherwise

func (XUnitViewer) EnsureXUnitViewer

func (c XUnitViewer) EnsureXUnitViewer(o *opts.CommonOptions) error

EnsureXUnitViewer makes sure `xunit-viewer` is installed, otherwise it attempts to install it. It also checks NPM is installed

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL