Skip to main content

Artifact Support (Screenshots, Videos, Logs) in Currents Generic Reporter Context

Our CI pipeline runs end-to-end tests (Detox + Jest) for a React Native application. Due to current limitations with the @currents/jest reporter in a CommonJS environment, we’re using a workaround that converts JUnit XML reports into Currents reports for upload.

This flow works functionally but lacks one key capability: attaching artifacts (screenshots, videos, logs) to the test results. These files are essential for debugging failures and verifying UI regressions in mobile E2E testing.


Problem
Currently:

  • The JUnit → Currents conversion format doesn’t support artifacts.

  • The Jest reporter also doesn’t include any mechanism for uploading files, as it uses the same generic Currents upload command.

  • As confirmed by Currents support (Miguel, 22 Oct 2025), “right now it is not supported,” and this applies to both JUnit and Jest reporters.

This limitation means that for frameworks like Detox or Cypress, where screenshot and video evidence are a standard part of test artifacts, Currents reports lose critical debugging data.


Proposed Solution
Add artifact attachment support to the generic Currents reporter and the data format reference, allowing uploads of associated files such as:

  • Test-level screenshots and videos (e.g., recorded per test case)

  • Test-level Log files or trace dumps

  • Possibly, arbitrary attachments (e.g., JSON results or CLI outputs)

Ideally, this would work both:

  • When uploading via the CLI (currents upload ...), referencing artifact file paths in metadata.

  • And when using reporter integrations (@currents/jest), automatically attaching files from known locations (like artifactsDir) based on testName or other matching identification.


Impact
Adding artifact support would:

  • Greatly improve debugging and analysis of E2E test failures.

  • Bring Currents in line with other reporting platforms (like Allure or TestRail integrations).

  • Enable teams to migrate fully to Currents even when not using supported reporters directly (e.g., when working through converted reports).

  • Reduce friction for users in monorepos, CI pipelines, or multi-environment setups where direct ESM usage isn’t feasible.


Additional Notes

  • Miguel mentioned the team “has plans to bump the generic reporter to support more things,” but no ETA is available.

4 comments

Log in to comment and vote

Comments4

  • Martin Cihlář

    •

    Oct 23, 2025

    I am afraid I cannot attach zip files here. Any suggestions?

  • Martin Cihlář

    •

    Oct 23, 2025

    Hello Andrew.

    I am attaching XML from a local smaller run. But just to be clear. Generating this XML is a workaround for us. We don’t need to rely on this format. It is just a plain Junit report generated by `['jest-junit', {}]` LINK to jest.config.js that we afterwards convert to a currents report and upload to cloud.

    We use this over ‘@currents/jest’ because of the CommonJS limitation

    junit-report.xml

    1.7 KB• Text


    Artifacts that we want to attach to reports are standard Detox ones. LINK to .deteoxrc.js
    That would be a device.log, few screenshots and a video in mp4 format. Attaching for your convenience.

  • Andrew Goldis

    Team•

    Oct 22, 2025

    @Martin Cihlář do you have an example XML + artifacts we can work with?

  • Andrew Goldis

    Team•

    Oct 22, 2025

    @Martin Cihlář thanks for the detailed breakdown!