1. Host the static JavaScript bundle
Create a bundle-hosting bucket
Create a publicly readable bucket following the S3 static website documentation.Upload the run-viewer-static bundle
Upload the contents of the run-viewer-static directory from the Momentic npm
package. The current bundle is available on the
momentic npm page, or from your
project at node_modules/momentic/run-viewer-static.
The bucket should contain:
2. Host the run-result zips
Create a results bucket
The bucket needs to be reachable from wherever the bundle is hosted. For this example a publicly readable bucket works.Upload the test-results directory
CLI runs write to./test-results by default (override with
--output-dir). The directory contains:
metadata.json: metadata for the full run groupruns/<run_id>.zip: one zip per individual run
runs/*.zip to the results bucket.
Allow CORS from the viewer origin
Add a CORS policy that allowsGET and HEAD from the bundle-hosting bucket’s
URL (replace hosted-run-viewer with your bundle bucket name):
3. View a run
Navigate to the viewer’sindex.html with a zipUrl query parameter pointing
at the run zip: