Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month ago
JSON representation
Simple Junit XML parser that supports both single and multiple testsuite Junit xml files.
- Host: GitHub
- URL: https://github.com/lumunix/jowont
- Owner: Lumunix
- License: mit
- Created: 2020-12-02T03:23:01.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-02T22:59:28.000Z (over 3 years ago)
- Last Synced: 2024-10-12T09:48:39.761Z (2 months ago)
- Topics: java, jaxb, junit, junit-xml, junit5, parser-library, sax-parser, xml-parsing
- Language: Java
- Homepage:
- Size: 299 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
}
}```