---
title: "<code class=\"docutils literal notranslate\"><span class=\"pre\">pbl</span> <span class=\"pre\">test</span></code>"
canonical_url: https://developer.repebble.com/pebbleos/docs/pbl/test/
last_updated: 2026-10-21
sdk_version: 4.33.1
---
# <code class="docutils literal notranslate"><span class="pre">pbl</span> <span class="pre">test</span></code>

Source: https://developer.repebble.com/pebbleos/docs/pbl/test/

Build and run the unit tests on the host. They are a CMake project of their own, configured into `build-test/`; anything `pbl test` does not recognize is passed to ctest.

```
pbl testpbl test -R animation
pbl test --coverage
```

[Unit tests](https://developer.repebble.com/pebbleos/docs/development/tests/unit.md) covers selecting, writing and debugging tests.

## Options

```
pbl test [-h] [-b DIR] [--dry-run] [-G GENERATOR] [-C] [--no-images]
         [--build-only]
```

`-G, --generator GENERATOR`

CMake generator (default: Ninja)

`-C, --coverage`

Instrument the tests and write an lcov report

`--no-images`

Skip the image fixtures; only some tests need them

`--build-only`

Build the tests without running

Generated from PebbleOS [3a7b71785](https://github.com/coredevices/pebbleos/commit/3a7b71785fd439666c4a8bc116f561140e8dec01). This page is maintained in the pebbleos repository: [docs/pbl/test.md](https://github.com/coredevices/pebbleos/blob/3a7b71785fd439666c4a8bc116f561140e8dec01/docs/pbl/test.md).
