---
schema_version: "1"
id: 0d71aa8c6aec64fba47ecb12e755d2b96a034980d44b8f13e48c246f3ba3ac09
title: SFRA Testing Technologies
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/sfra/guides/b2c-testing-sfra.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/b2c-testing-sfra.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0ceb11e380c5a02cdf1e392a381de8a5e672659a93eba579f67c3c4516e35e18
products:
  - Composable Storefront
  - Salesforce APIs
---
# SFRA Testing Technologies

Include integration, unit, and functional tests in your SFRA development process.

Supported testing technologies include these kinds of tests:

- Controllers are tested with integration tests. Salesforce B2C Commerce uses mocha, chai, and request-promise for integration testing.
- Models are tested with unit tests. B2C Commerce uses mocha, chai, sinon, and proxyquire for unit tests.
- Views are tested with functional tests. B2C Commerce uses mocha, chai, and webdriver.io for functional tests.

## Testing Commands

Use these commands:

| Command                          | Description                                   |
| -------------------------------- | --------------------------------------------- |
| `npm run cover`                  | Runs unit tests with a coverage report.       |
| `npm run test`                   | \* Runs all SFRA unit tests.                  |
| `npm run test:appium`            | \* Runs functional tests for mobile devices.  |
| `npm run test:integration`       | \* Runs the integration tests.                |
| `npm run test:functional`        | Runs the functional tests in the browser.     |
| `npm run test:functional:docker` | Runs the functional tests from inside docker. |
| `npm run test:functional:sauce`  | Runs the remote functional tests              |

**note:** - These commands require a `dw.json` file or extra command-line parameters.
