The Simplest Way to Make Cypress and Port Work Like They Should
Integrating cypress and port lets teams push browser test results straight into their developer portal. This setup tracks app quality, updates service scorecards, and blocks broken builds from shipping. Cypress runs end-to-end tests against web apps in real browsers during build pipelines. Port acts as a central catalog that tracks service health, owners, and deploy status. When these two tools talk, developers see live test health next to service metadata. Teams do not need to dig through buil
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Integrating cypress and port lets teams push browser test results straight into their developer portal. This setup tracks app quality, updates service scorecards, and blocks broken builds from shipping.
Cypress runs end-to-end tests against web apps in real browsers during build pipelines. Port acts as a central catalog that tracks service health, owners, and deploy status. When these two tools talk, developers see live test health next to service metadata. Teams do not need to dig through build logs to check if tests passed.
How cypress and port share test data
The link between cypress and port relies on a clear, one-way data flow. First, the build runner starts a Cypress test suite against a staging app. Cypress checks user flows, records pass or fail states, and counts total test time. When the run ends, the build runner formats these results into a clean payload.
Next, the build job logs in to Port using a dedicated client secret. It trades those credentials for a short token that grants write access to Port. The runner then sends the test payload to the right service record in Port. Port reads the incoming data and updates the matching entity in the catalog.
Teams can also trigger Cypress runs straight from the Port user interface. A developer clicks a self-service button in Port to test a specific branch. Port sends a webhook event to the build system to start the test job. As the job runs, it sends live status updates back to the portal page.
Common failure modes and how to fix them
Many teams set up this workflow with one shared admin key for all builds. If that broad key leaks in a build log, an attacker can change catalog data. Instead, create a scoped role in Port that only updates test result fields. Give each build pipeline its own secret so you can rotate keys without downtime.
Another common issue happens when test runners send unlogged requests or raw test data. Browser tests often touch test accounts that look like real user data. If a test fails, the error message might hold emails or phone numbers. Masking rewrites matched fields in results before the job sends logs to the portal.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Schema mismatches can also break the link between your test runner and catalog. If a team changes the service name in the repo, the update call fails. Map each repo to a fixed entity ID in Port to avoid broken updates. Set up network rules so only trusted build runners can reach your portal endpoints.
Keeping scorecards accurate across teams
Once data flows safely, platform teams can build automated rules around test health. Port scorecards can check if the latest Cypress run passed within the last day. If a service falls below the passing mark, Port flags the owner team. This keeps standards clear across every repo without manual spreadsheets or status meetings.
You should also set a retention rule for old test run records in Port. Storing every single test run forever will clutter the catalog and slow down views. Keep only the latest run state on the main service page for quick checks. Send older historical test summaries to cold storage for long-term trend analysis.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
Should Cypress send results straight to Port or through the CI runner?
Send results through the CI runner after the Cypress process finishes its work. This keeps portal keys out of the browser test process and simplifies error handling.
What test metrics belong in the developer portal?
Store high-level facts like pass state, total test count, duration, and build link. Leave deep stack traces and heavy video files inside your main test storage bucket.
How do we stop flaky tests from failing service scorecards?
Track both the latest run state and a rolling pass rate in your catalog. Base your scorecard rule on the rolling rate so one random glitch does not block deploys.
Related guides
In this post