---
url: 'https://www.corbado.com/faq/passkey-testing-cicd-best-practices'
title: 'What''s best for passkey testing in CI/CD pipelines?'
description: 'Discover the best practices for integrating passkey testing into CI/CD pipelines to ensure seamless and secure deployments.'
lang: 'en'
keywords: 'passkey testing CI/CD, CI/CD pipeline passkeys, continuous integration passkey testing'
---

# What's best for passkey testing in CI/CD pipelines?

## What Are the Best Practices for Integrating Passkey Testing in CI/CD Pipelines?

Integrating [passkey testing](https://www.corbado.com/blog/testing-passkeys) into CI/CD pipelines ensures that
issues are identified early, enhancing deployment reliability and efficiency. Here are the
best practices:

### 1. Set Up Automated Testing

- **Unit Tests:** Validate individual passkey components, such as registration,
  authentication, and error handling.
- **End-to-End Tests:** Simulate real user flows, including cross-device authentication
  and fallback mechanisms.
- **Virtual Authenticators:** Use virtual [authenticators](https://www.corbado.com/glossary/authenticator) for
  automated testing of passkey workflows.

### 2. Use a Staging Environment

- **Realistic Scenarios:** Deploy a staging environment that mirrors production to test
  changes in a controlled setting.
- **Cross-Device Testing:** Validate functionality across devices and platforms before
  deploying updates.

### 3. Incorporate Regression Testing

- **Prevent Breakages:** Automatically run regression tests to ensure new changes do not
  disrupt existing features.
- **Frequent Testing:** Trigger tests on every code commit or pull request to catch issues
  early.

### 4. Monitor Key Metrics

- **Performance Metrics:** Measure response times, throughput, and error rates during test
  executions.
- **Authentication Success Rates:** Track the success and failure rates of passkey
  authentication workflows.

### 5. Integrate Security Tests

- **Penetration Testing:** Conduct automated security tests to detect
  [vulnerabilities](https://www.corbado.com/glossary/vulnerability) in passkey implementations.
- **Compliance Checks:** Ensure changes align with security standards like WebAuthn
  specifications.

### 6. Optimize for Speed and Scalability

- **Parallel Execution:** Run tests in parallel to minimize pipeline execution time.
- **Selective Testing:** Use test tagging to execute only relevant test suites for
  specific changes.

### 7. Leverage CI/CD Tools

- **Tool Integration:** Use tools like Jenkins, GitHub Actions, or GitLab CI/CD for
  seamless automation. Check this article for
  [free AI testing tools](https://testautomationtools.dev/free-ai-testing-tools/) that can
  further streamline your workflow and enhance test efficiency with minimal manual effort.
- **Failure Alerts:** Configure notifications for test failures to quickly address issues.

By following these best practices, enterprises can ensure that
[passkey testing](https://www.corbado.com/blog/testing-passkeys) is efficient, reliable, and supports secure,
seamless deployments.

## Read the full article
