platformio / platformio/platformio-core

Add support for CMock unit testing framework

Open
#936 2 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature unit testing
Dominant language
Python
Stars
9.5k
Forks
905
Avg merge
2d 13h
Merged PRs (30d)
2

Description

Since pio test seems to be based on ThrowTheSwitch's Unity, it would be great also being able to use their CMock mocking framework, specially when compiling for platform native when a bunch of dependencies will fail to compile with native gcc.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the pio test implementation and its existing Unity integration, then inspect how platform native dependencies are compiled. Define what CMock support should cover, especially for native gcc builds, and verify that representative mocked tests and existing Unity tests still run successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.