Skip to main content

JUnit

JUnit is a testing frameworks for the JVM and is used by many popular builds tools such as Gradle, Maven, Ant or Spring Boot. Most of these tools generate JUnit XML report files when running your tests by default. Submit and collect all your tests results from JUnit-style XML reports in Testiny to track results over time, identify frequently failing tests and fix CI failures or flaky tests.

info

Many testing frameworks follow a standardized JUnit-style XML format to record test results. You can import JUnit-style XML reports from any testing framework into Testiny, not just from JUnit.

JUnit Reports

To submit JUnit-style XML reports to Testiny, use the Testiny CLI with the --junit option and make sure you're specify a Testiny API key. The CLI will collect the results of all specified JUnit XML reports and create an automated test run in Testiny.

export TESTINY_API_KEY=****
npx @testiny/cli automation --project ID_OR_KEY --source "frontend-tests" --junit results/*.xml 

More resources

Here are some further resources to help you get started with integrating jUnit with Testiny, including CI/CD integration examples, a full automation guide, and the Testiny CLI.