Skip to content

Conversation

@baphled
Copy link
Member

@baphled baphled commented Dec 6, 2019

This PR addresses the fact that there are a few classes tucked away inside ConfigManager.h.

It moves BaseParameter, and it's associated classes, into their own header file. As well as moving the debugging definitions into their own file.

This also functions as POC for using the lib directory for classes that aren't directly used by users of the library but required by ConfigManager itself.

We also introduce a few unit tests to help drive some of the changes.

At present these tests require a ESP8266 and ESP32 board to run the tests against. This is due to the requirement of the Arduino library when it comes to using ArduinoJson.

This could be changed to running the tests natively, once ArduinoJson is replaced with a JSON library that is not reliant on Arduino.h header file.

Swapping out ArduinoJson will allow us to run our tests natively, allowing for our tests to run quicker and not require any boards to run the tests against.

We could still use the current setup, so that we can test ConfigManager against real boards, so this seems like a sane step to make to get the library under test.

@baphled baphled force-pushed the refactor/extract_external_libraries branch 3 times, most recently from c070a8a to 4993df9 Compare December 12, 2019 18:25
@baphled baphled force-pushed the refactor/extract_external_libraries branch from 4993df9 to 0236969 Compare December 15, 2019 02:59
@baphled baphled force-pushed the master branch 3 times, most recently from e37500e to 6bb118c Compare May 27, 2020 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants