Skip to content

Conversation

zeroXbrock
Copy link
Member

@zeroXbrock zeroXbrock commented Apr 23, 2025

Motivation

  • testing changes to report, namely the HTML template, was cumbersome and involved a lot of setup
  • want to preview a contender report w/o having to run contender
  • also, fixtures make integration testing easier
    • we can test contender reports w/o running a node or spamming

Solution

If you don't want to install the rust toolchain or any of the other sys dependencies:

We have a Dockerfile that runs contender cli w/ fixture data imported by default.
We also have a script that will build the docker image and generate a test report:

./scripts/test-report.sh

If you don't want to generate a report locally:

  • we generate one in CI; you can download a zip file with the full HTML report (extract the zip, then open report-2-2.html)

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@zeroXbrock zeroXbrock requested a review from sukoneck as a code owner April 23, 2025 16:19
Copy link
Contributor

github-actions bot commented Apr 23, 2025

Preview Report

An example contender report preview is available here.

@zeroXbrock zeroXbrock merged commit 03ca1ad into main Apr 23, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant