You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem this feature will solve
When testing on Renode, the test file assumes that the supplementary files (dependencies) were written correctly. This suggests that bugs in the dependencies can impact the results of the singular file being tested, which is not desired. Additionally while Renode has been useful to run tests without hardware, it seems to have issues, including switching between tasks.
Describe the proposed solution
Unit testing will solve this problem by mocking the supplementary file's functions. This would mean that the dependencies' desired parameters and return values will be predetermined, making all of the supplementary functions predictable and as desired. This will allow us to test one file at a time without having to worry about other files impacting the test results.
Describe possible alternatives
Different unit testing frameworks have been considered including cmock and cmockery. However, Fake Function Framework (FFF) was ultimately selected as it makes for an easier integration and is lightweight.
Describe the problem this feature will solve
When testing on Renode, the test file assumes that the supplementary files (dependencies) were written correctly. This suggests that bugs in the dependencies can impact the results of the singular file being tested, which is not desired. Additionally while Renode has been useful to run tests without hardware, it seems to have issues, including switching between tasks.
Describe the proposed solution
Unit testing will solve this problem by mocking the supplementary file's functions. This would mean that the dependencies' desired parameters and return values will be predetermined, making all of the supplementary functions predictable and as desired. This will allow us to test one file at a time without having to worry about other files impacting the test results.
Describe possible alternatives
Different unit testing frameworks have been considered including cmock and cmockery. However, Fake Function Framework (FFF) was ultimately selected as it makes for an easier integration and is lightweight.
Additional context
For more: Comprehensive Unit Testing
The text was updated successfully, but these errors were encountered: