donutreport / donut-junit-adapter Goto Github PK
View Code? Open in Web Editor NEWJUnit4 adapter for donut. This generates gherkin jsons (that donut understands) from the JUnit result xmls.
JUnit4 adapter for donut. This generates gherkin jsons (that donut understands) from the JUnit result xmls.
Test Case:
FROM openjdk:8
LABEL maintainer="[email protected]"
ENV DONUT_JUNIT_VERSION 0.2.1
WORKDIR /app
ADD "http://repo1.maven.org/maven2/io/magentys/donut-junit-adapter/${DONUT_JUNIT_VERSION}/donut-junit-adapter-${DONUT_JUNIT_VERSION}-jar-with-dependencies.jar" "/app/donut-junit-adapter.jar"
VOLUME /source/
VOLUME /output/
ENTRYPOINT ["java", "-jar", "donut-junit-adapter.jar", "-p", "/source/", "-o", "/output/"]
docker build . -t donut/donut-junit-adapter
docker run --rm -it -v `pwd`/src/test/resources/junit/multiple_results:/source -v `pwd`/target:/output donut/donut-junit-adapter
Expected:
JSON reports saved at location: /output/
Actual:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
at io.magentys.jaxb.XmlUtils.unmarshal(XmlUtils.java:38)
at io.magentys.jaxb.XmlUtils.unmarshal(XmlUtils.java:29)
at io.magentys.main.Main.generateDonutJsonFiles(Main.java:50)
at io.magentys.main.Main.doMain(Main.java:33)
at io.magentys.main.Main.main(Main.java:23)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
... 5 more
javax.xml.bind.JAXBContext
The junit report might contain 'error' and 'failure' tests
Example header of the xml report:
The adapter just generates report data for the 'failure' tests
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.