platformio / platformio/platformio-core

Sibling folders

Open
#5,154 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi, I would like to run my unity tests with both the source lib and the unit test .cpp/.h being in separate sibling folders rather than child folders.

I usually struggle with this.

Specifically a structure like:

  • src/estd
  • test/unity
  • test/arduino/unity

Where platformio.ini and friends are in test/arduino/unity, tests in test/unity and lib source in src/estd
I've resorted to symlinks but it's pretty clunky and makes VSCode go insane

Please observe https://github.com/malachi-iot/estdlib/tree/v0.8.5/test/arduino/unity as a demonstration

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 with the example project at test/arduino/unity and its platformio.ini, then compare how tests in test/unity and sources in src/estd are discovered and built. The work is done when PlatformIO supports this sibling-folder layout without symlinks and the demonstrated Unity tests run successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, embedded-iot, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.