pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

PebbleOS

  • Overview
  • Start here
    • Getting started guide
    • Playground
  • Development
    • The pbl CLI
      • pbl configure
      • pbl build
      • pbl bundle
      • pbl menuconfig
      • pbl clean
      • pbl test
      • pbl itest
      • pbl samples
      • pbl sdk
      • pbl run
      • pbl console
      • pbl debug
      • pbl debugserver
      • pbl emulator
      • pbl image_resources
      • pbl image_recovery
      • pbl erase
      • pbl lab
      • pbl power
      • Extending pbl
    • Build system
    • Samples
    • Emulator and simulator
    • Testing
    • Debugging
    • Conventions
  • System
    • Architecture overview
    • Kernel
    • Subsystems
    • Drivers
    • Services
    • Libraries
    • Third-party
    • Application SDK
  • Hardware
    • Boards
    • Programmers
  • Community
    • Contribution Guidelines
  • Reference
    • Reference
    • Kconfig options

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 test
pbl test -R animation
pbl test --coverage

Unit tests covers selecting, writing and debugging tests.

Options

pbl test [-h] [-b DIR] [--dry-run] [--lab FILE] [--watch NAME]
         [--wait [SECONDS]] [-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 7753e801d. This page is maintained in the pebbleos repository: docs/pbl/test.md.