-
Notifications
You must be signed in to change notification settings - Fork 1
Adding coverage test for TaskResumeFromISR #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding coverage test for TaskResumeFromISR #4
Conversation
* Adding coverage test for xTaskResumeFromISR
...S/Test/CMock/smp/single_priority_no_timeslice_covg/single_priority_no_timeslice_covg_utest.c
Outdated
Show resolved
Hide resolved
| * This test can be run with FreeRTOS configured for any number of cores | ||
| * greater than 1 . | ||
| * | ||
| * Tasks are created prior to starting the scheduler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the description could probably be simpler (depending on the test). This portion should describe any setup or pre-conditioning required to take a particular code path. Perhaps we should also include a code snippet of the specific code path we are taking for coverage.
My concern is that when code changes it is difficult to determine which code coverage test needs to be updated to match. This can result in creating unnecessary coverage tests over time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code could also be changed in the future. In this case, code snippet will need extra effort to maintain.
I would like to use API and comment for tracking. At least when we change the code of an API, we can search for the test cases we may also need to update.
test_coverage_<API>_<test description>
<API> can be public API or private API.
...S/Test/CMock/smp/single_priority_no_timeslice_covg/single_priority_no_timeslice_covg_utest.c
Outdated
Show resolved
Hide resolved
* Move the covg test to the folder have same FreeRTOSConfig.h * Add configUSE_TICKLESS_IDLE config in single_priority_no_timeslice test group
* Move the utest.c file to single_priority_timeslice folder
joshzarr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Adding coverage test for xTaskResumeFromISR
Description
Test Steps
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.