Home / Companies / PostHog / Blog / Post Details
Content Deep Dive

Setting up super fast Cypress tests on GitHub Actions

Blog post from PostHog

Post Details
Company
Date Published
Author
-
Word Count
2,132
Company Posts That Month
5
Language
-
Hacker News Points
-
Post removed?
No
Summary

PostHog focuses on rapidly deploying new features while ensuring reliability through rigorous testing and CI/CD practices. They implement unit and integration tests within their Django codebase to maintain backend integrity, using the standard Django test runner. To prevent frontend disruptions, they leverage Cypress for browser-based testing, allowing for programmatic interactions with the application. GitHub Actions serves as their CI framework, enabling continuous testing and clean master branches by re-running Django and Cypress tests upon pull request creation. They utilize caching in GitHub Actions to optimize build times, reducing the need for repeated dependency installations and frontend recompilations. PostHog also employs parallel execution of Cypress tests to expedite the testing process, ensuring efficiency even as the test suite expands. Additionally, they capture test artifacts to troubleshoot failures and plan future enhancements, such as automated performance testing, to safeguard against regressions that could impact high-frequency telemetry event handling.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.