# Automated Testing for Preview Deployments

> "Catching issues after code is merged to production is too late–so we added automatic testing for preview

Source: https://qa.tech/changelog/preview-deployment-testing · Published: 2025-07-10

---
Catching issues after code is merged to production is too late—so we added automatic testing for preview environments on pull requests.

**How It Works**

-   **Automatic Detection:** QA.tech detects preview deployments from Vercel, Netlify, and other platforms when you open or update a pull request, eliminating manual URL configuration.
-   **Pre-Merge Testing:** Tests run automatically against your preview environment before code is merged, catching issues early in the development cycle when they're easiest to fix.
-   **Fast Feedback Loop:** Receive instant test results directly on your pull request, enabling reviewers to verify both code quality and functional behavior before approval.

Configure preview environments in your [project settings](https://docs.qa.tech/) by defining URL patterns and lifecycle rules, then integrate with your GitHub workflow to enable automatic testing on every pull request.
