Task-Tracker-Systems / Task-Tracker-Device

Sources for a task time recording device.
https://task-tracker-systems.github.io/Task-Tracker-Device/
MIT License
2 stars 0 forks source link

Move packages to `lib/` in order to simplify unit test infrastructure #49

Closed dhebbeker closed 11 months ago

dhebbeker commented 11 months ago

I think I found an answer to the question about whether to put modules into src or lib directory.

The PlatformIO documentation explains:

By default, PlatformIO does not build the main source code from the src_dir folder in pair with a test source code. [...] We recommend splitting the source code into multiple components and placing them into the lib_dir (project’s private libraries and components).

Although this is not the only option available for unit tests, but the recommended one.

I infer that: