Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lumunix/jowont

Simple Junit XML parser that supports both single and multiple testsuite Junit xml files.
https://github.com/lumunix/jowont

java jaxb junit junit-xml junit5 parser-library sax-parser xml-parsing

Last synced: 26 days ago
JSON representation

Simple Junit XML parser that supports both single and multiple testsuite Junit xml files.

Awesome Lists containing this project

README

        

# **JOwOnt - OwO What's This?**

## About
Simple Junit XML parser that supports both single and multiple testsuite Junit xml files. This parser is based off the Jenkins Junit XSD specification.

## Usage
```java
import com.github.lumunix.jowont.JOwOnt;
import com.github.lumunix.jowont.models.JUnitTestSuite;
import org.xml.sax.SAXException;
import javax.xml.bind.JAXBException;
import javax.xml.stream.XMLStreamException;
import java.io.IOException;
import java.io.InputStream;

public class sample {

static InputStream inputStream = sample.class.getClassLoader().getResourceAsStream("junit.xml");

public static void main(String[] args) throws IOException, SAXException, XMLStreamException, JAXBException {

Object parsedXML = JOwOnt.parseJunitXml(inputStream);

JUnitTestSuite marshalledTestSuite = (JUnitTestSuite)parsedXML;

}
}

```