---
title: Testing and Quality Assurance | Shopware Community Hub
description: >-
  Learn how to set up, write, and run tests in Shopware to ensure code stability
  and long-term quality.
canonical_url: 'https://hub.shopware.com/learn/course/testing-and-quality-assurance'
---

# Testing and Quality Assurance

<LearningObjectives>

- Understand the importance of testing in software development.
- Know the difference between unit tests and end-to-end tests.
- Learn best practices for maintaining high code quality.
- Write and run a PHPUnit test for a custom Shopware command.
- Run tests locally and in a CI environment.

</LearningObjectives>

# Testing and Quality Assurance

**Testing** and **Quality Assurance (QA)** are crucial parts of the development process. They ensure that your projects remain **stable**, **maintainable**, and **ready for future updates**.

This course will guide you through the **testing** and **quality assurance** of your Shopware instance from a developer's perspective. You will learn how to test your Shopware instance to ensure that it works as expected and how to ensure the quality of your code.

## Learning Units

## Units
- [Introduction to Testing in Shopware](/learn/unit/intro-testing-shopware): Learn why testing matters in Shopware, how unit tests and end-to-end tests differ, and when to use PHPUnit, Jest, and Playwright.
- [Best Practices for Maintaining Code Quality](/learn/unit/maintaining-code-quality): Learn how to ensure high code quality in Shopware through testing, reviews, tools, and continuous improvement.
- [Setting Up and Running PHPUnit Tests](/learn/unit/setting-up-and-running-phpunit-tests): Learn how to set up PHPUnit for a Shopware plugin, test a console command, and run the tests locally and in CI.
