HAN-IOT-LAB-2324 / CayenneLPP_MemOptimized

Cayenne Low Power Payload (LLP)
https://han-iot-lab-2324.github.io/CayenneLPP_MemOptimized/
GNU General Public License v3.0
0 stars 1 forks source link

Missing unit tests approach for the Payload encoder #3

Closed Hoog-V closed 3 months ago

Hoog-V commented 4 months ago

Unit tests plan

The original library did not have unit tests our new library should have them (according to the class manual).

For me the following questions arise:

I would highly appreciate it, if you help me elaborate on the questions besides answering :)

Hoog-V commented 4 months ago

As discussed, we start by testing the new cayennelpp, also to get familiar with the advantages and drawbacks of this new architecture. The first tests will test the setters functions which add certain variable types to the payload queue.

We are going to test the payload decoder when there is time left. We considered using other frameworks, but googletest is the most adopted and easiest to use.

The tests are mainly black box tests, though white box tests might be added in the future