junitxml

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package junitxml provides a mechanism to convert a streamed test log to JUnit XML.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProperty

func AddProperty(test, name, value string)

AddProperty adds a name-value property associated with the given test name to the JUnit XML testsuite that is generated.

func DecodeProperty

func DecodeProperty(prop junit.Property) (string, string, string)

DecodeProperty decodes a test name and property name-value from a JUnit Property.

func StartConverting

func StartConverting(xmlPath string) error

StartConverting starts converting a Go test log in stdout to a JUnit XML file written at the specified path. Stop _must_ be called on the returned Converter to ensure the XML is fully written.

func StopConverting

func StopConverting() error

StopConverting stops converting and waits for the XML to be fully written.

Types

This section is empty.

Jump to

Keyboard shortcuts

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