Product

Custom Test Reporting with buddybuild

You can now use buddybuild’s test infrastructure to run almost any 3rd-party (or homegrown) test framework for your projects and have the results appear directly in the buddybuild dashboard.

Buddybuild can automatically run, parse and display the results of tests that use native Test frameworks for iOS and Android (XCTest, XCUITest for iOS and JUNit for Android).

This blog post outlines how to run, parse and display test results for other popular testing frameworks such as Appium, Calabash, Mocha, Jasmine, Jest and Cucumber.

Supported Testing Frameworks

For a complete and up-to-date list of supported frameworks, please read the buddybuild docs for Supported Frameworks.

You can configure buddybuild to run your preferred testing framework and render the results seamlessly in the Build Details of every build.

To help buddybuild automate this process:

  1. Install the test framework and its dependencies.
    Some test frameworks can be installed simply by declaring them as dependencies of your project. For the rest, you can include commands within buddybuild_postbuild.sh that fetch and install your test framework.

  2. Configure and execute your tests via the buddybuild_postbuild.sh script.

  3. Store your test results in JUnit format in a user-defined folder within the buddybuild_artifacts folder.
    Test results can be in XML or JSON format. The folder name you choose informs the name of the tab that appears in Build Details. For example, if the test results are stored in buddybuild_artifacts/Jest, the test results appear in a tab named Jest.

We’ve created a helpful GitHub repository with sample projects to show you how to integrate some of the most common 3rd-party testing frameworks into buddybuild. We’ll continue adding examples to this repo over the next few weeks, so if there’s a framework you’d like to see added, please let us know.

Subscribe to receive other buddybuild updates.