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: 26 days 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-02T22:59:28.000Z (over 3 years ago)
- Last Synced: 2023-03-10T08:17:38.804Z (over 1 year 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;
}
}```