DLTcollab / TA-endpoint

Connect resource constrained endpoints with Tangle-Accelerator
Apache License 2.0
0 stars 2 forks source link

Formalize unittests in TA-endpoint #7

Closed howjmay closed 4 years ago

howjmay commented 4 years ago

The current implementation of tests are in a really rough version. We should use introduce some testing framework for our tests.

We needs to implement CI process and sanitizers for different CI scenarios.

howjmay commented 4 years ago

Currently we use unittest framework unity

marktwtn commented 4 years ago

I have rewritten the tests with Unity testing framework.

However, the Unity testing framework can not be installed easily. (Check https://github.com/ThrowTheSwitch/Unity/issues/302 for more reference.)

Other projects like iota_common solve the problem with Bazel.

I need to figure out how to use Unity correctly.

howjmay commented 4 years ago

Or is there any other simple pure C test framework.

marktwtn commented 4 years ago

Or is there any other simple pure C test framework.

Well, all we have to do is to download the specific version of Unity and assign the correct path for the header and the source code. It would not be hard.

If making the Unity as a git submodule is acceptable, I will move on for the modification. Or we could just download it and remove it when we do the project cleaning.