Custom test reporting

Buddybuild automatically runs, parses, and displays test results from native test frameworks for iOS (XCTest and XCUITest) and Android (JUnit). If you’re using a third-party or homegrown test framework (one that is not listed in buddybuild’s supported test frameworks), you can continue using your test framework and have the results appear directly in the buddybuild dashboard; it’s easy!

  1. Install the test framework and its dependencies

    You have several options, depending on the nature of your test framework:

    1. Some test frameworks can be installed simply by declaring them as dependencies of your project.

    2. If your test framework is homegrown, commit it within your project or use a git submodule.

    3. For any other framework, include commands in the buddybuild_postbuild.sh script that fetch and install your test framework.

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

  3. Store the 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 that you choose informs the name of the that appears on the Build Details screen. For example, if the test results are stored in buddybuild_artifacts/Jest, the test results appear in a tab named Jest:

    The Jest test results

Buddybuild provides a helpful GitHub repository containing sample projects that demonstrate how to integrate some of the most common third-party test frameworks into buddybuild.

results matching ""

    No results matching ""